Skip to content

Raw data contract

The raw acquisition data of a session, as described by the aind-behavior-vr-foraging data contract (version 1.3.4), which contraqctor uses to load it.

These are the inputs to the pipeline. For the tables it produces, see Processed tables. To read these streams directly, see Raw streams with contraqctor.

Older sessions are loaded with the contract matching their dataset version, so some streams may be absent or differ. Paths are relative to the session root. A stream without a description is documented upstream.

Behavior

Data from the Behavior modality

Stream Type File Description
HarpBehavior HarpDevice behavior/Behavior.harp
HarpManipulator HarpDevice behavior/StepperDriver.harp
HarpTreadmill HarpDevice behavior/Treadmill.harp
HarpOlfactometer HarpDevice behavior/Olfactometer.harp
HarpSniffDetector HarpDevice behavior/SniffDetector.harp
HarpLickometer HarpDevice behavior/Lickometer.harp
HarpClockGenerator HarpDevice behavior/ClockGenerator.harp
HarpEnvironmentSensor HarpDevice behavior/EnvironmentSensor.harp
HarpOlfactometerExtension MapFromPaths Data from any additional Harp Olfactometer devices that were added as extensions to the main olfactometer. The number of these devices can vary between sessions, but they will always be named sequentially as OlfactometerExtension1, OlfactometerExtension2, etc.
HarpCommands DataStreamCollection Commands sent to Harp devices
    HarpBehavior HarpDevice behavior/HarpCommands/Behavior.harp
    HarpManipulator HarpDevice behavior/HarpCommands/StepperDriver.harp
    HarpTreadmill HarpDevice behavior/HarpCommands/Treadmill.harp
    HarpOlfactometer HarpDevice behavior/HarpCommands/Olfactometer.harp
    HarpSniffDetector HarpDevice behavior/HarpCommands/SniffDetector.harp
    HarpLickometer HarpDevice behavior/HarpCommands/Lickometer.harp
    HarpClockGenerator HarpDevice behavior/HarpCommands/ClockGenerator.harp
    HarpEnvironmentSensor HarpDevice behavior/HarpCommands/EnvironmentSensor.harp
    HarpOlfactometerExtension MapFromPaths Data from any additional Harp Olfactometer devices that were added as extensions to the main olfactometer. The number of these devices can vary between sessions, but they will always be named sequentially as OlfactometerExtension1, OlfactometerExtension2, etc.
SoftwareEvents DataStreamCollection Software events generated by the workflow. The timestamps of these events are low precision and should not be used to align to physiology data.
    ActivePatch SoftwareEvents behavior/SoftwareEvents/ActivePatch.json An event emitted when a patch threshold is crossed.
    ActiveSite SoftwareEvents behavior/SoftwareEvents/ActiveSite.json An event emitted when a site becomes active.
    ArmOdor SoftwareEvents behavior/SoftwareEvents/ArmOdor.json An event sent each time an Odor mixture messaged is sent to arm at the olfactometer.
    Block SoftwareEvents behavior/SoftwareEvents/Block.json An event signaling block transitions.
    ChoiceFeedback SoftwareEvents behavior/SoftwareEvents/ChoiceFeedback.json A unit event that is emitted when the subject receives feedback about their choice.
    ForceGiveReward SoftwareEvents behavior/SoftwareEvents/ForceGiveReward.json An event that is emitted when the experimenter manually delivers a reward to the subject, overriding the task logic.
    GiveReward SoftwareEvents behavior/SoftwareEvents/GiveReward.json The amount of reward given to a subject. The value can be null if no reward was given (P=0) or 0.0 if the reward was delivered but calculated to be 0.
    PatchRewardAmount SoftwareEvents behavior/SoftwareEvents/PatchRewardAmount.json Amount of reward available to be collected in the upcoming site.
    PatchRewardAvailable SoftwareEvents behavior/SoftwareEvents/PatchRewardAvailable.json Amount of reward left in the patch.
    PatchRewardProbability SoftwareEvents behavior/SoftwareEvents/PatchRewardProbability.json Probability of reward being available to be collected in the upcoming site.
    RngSeed SoftwareEvents behavior/SoftwareEvents/RngSeed.json The value of the random number generator seed.
    StopVelocityThreshold SoftwareEvents behavior/SoftwareEvents/StopVelocityThreshold.json The velocity threshold used to determine if the subject is stopped or not. In cm/s.
    VisualCorridorSpecs SoftwareEvents behavior/SoftwareEvents/VisualCorridorSpecs.json Specification of the visual corridor instantiated to be rendered.
    WaitRewardOutcome SoftwareEvents behavior/SoftwareEvents/WaitRewardOutcome.json The outcome of the period between choice and reward delivery.
    WaitLickOutcome SoftwareEvents behavior/SoftwareEvents/WaitLickOutcome.json The outcome of the period between reward availability and lick detection.
    UpdaterStopDurationOffset SoftwareEvents behavior/UpdaterEvents/UpdaterStopDurationOffset.json Metadata for the updater of the StopDurationOffset parameter.
    UpdaterStopVelocityThreshold SoftwareEvents behavior/UpdaterEvents/UpdaterStopVelocityThreshold.json Metadata for the updater of the StopVelocityThreshold parameter.
    UpdaterRewardDelayOffset SoftwareEvents behavior/UpdaterEvents/UpdaterRewardDelayOffset.json Metadata for the updater of the RewardDelayOffset parameter.
    HabituationRewardAvailable SoftwareEvents behavior/SoftwareEvents/HabituationRewardAvailable.json In the habituation task mode, this event will be emitted whenever a reward is available to be collected.
    PatchState SoftwareEvents behavior/SoftwareEvents/GlobalPatchState.json An event emitted whenever the state of a patch changes.
    PatchTermination SoftwareEvents behavior/SoftwareEvents/PatchTerminationEvent.json An event emitted whenever a patch is terminated by the task logic.
    SpoutParkingPositions SoftwareEvents behavior/SoftwareEvents/SpoutParkingPositions.json Encodes the spout parking positions to use while fully retracted or extended.
    PatchStateAtReward SoftwareEvents behavior/SoftwareEvents/PatchStateAtReward.json An event emitted whenever the reward is about to be given and the patch state is sampled.
    Annotations SoftwareEvents behavior/SoftwareEvents/Annotations.json An event emitted whenever an annotation is made during the session.
    EndSession SoftwareEvents behavior/SoftwareEvents/EndSession.json A file that determines the end of the session. If the file is empty, the session is still running or it was not closed properly.
    StartSessionTime SoftwareEvents behavior/SoftwareEvents/StartSessionTime.json An event emitted at the start of the session. Data contains a UTC timestamp of the session start time.
    EndSessionTime SoftwareEvents behavior/SoftwareEvents/EndSessionTime.json An event emitted at the end of the session. Data contains a UTC timestamp of the session end time.
OperationControl DataStreamCollection Streams associated with online operation of the task.
    CurrentPosition Csv behavior/OperationControl/CurrentPosition.csv The position of the animal in VR coordinates (cm). The timestamp is derived from the encoder reading that gave rise to the position change.
    IsStopped Csv behavior/OperationControl/IsStopped.csv The result of the ongoing stop detection algorithm. The timestamp is derived from the encoder reading that gave rise to the position change.
    Torque Csv behavior/OperationControl/CurrentPosition.csv The torque instructed to be applied to the treadmill. Timestamps are software-derived, use the Harp device events for hardware timestamps.
    RendererSynchState Csv behavior/Renderer/RendererSynchState.csv Contains information that allows the post-hoc alignment of visual stimuli to the behavior data. Seconds are software derived.
Logs DataStreamCollection
    Launcher Text behavior/Logs/.launcher/launcher.log Contains the console log of the launcher process.
InputSchemas DataStreamCollection Configuration files for the behavior rig, task_logic and session.
    Rig PydanticModel behavior/Logs/rig_output.json
    TaskLogic PydanticModel behavior/Logs/tasklogic_output.json
    Session PydanticModel behavior/Logs/session_output.json

BehaviorVideos

Data from BehaviorVideos modality

Stream Type File Description