Replies: 11 comments
-
Hey Nate, Given all this do you want:
|
Beta Was this translation helpful? Give feedback.
-
Hey Nicco, Thanks for this response. Either the first or (even better) the second would be what I'm looking for. Basically the time from which the mouse is forced to hold the wheel still until the stim (or trial) starts. I think I could get an estimate of this for now by using the time of last wheel movement? Eventually we will probably need to know the values of the 'enforced quiescence' though. |
Beta Was this translation helpful? Give feedback.
-
_ibl_trials.quiescentValues.npy |
Beta Was this translation helpful? Give feedback.
-
dataset approved: regarding quiescent intervals, feedback from DAWG: if the goal is to know the total amount of time the subject was in the pre stim phase, users can get that info from trials.intervals[:,0] and trials.stimOn_times. |
Beta Was this translation helpful? Give feedback.
-
Hey Nicco, the goal is not to know the total amount of time the subject was in the pre stim phase, but rather to determine the period of time before each trial in which quiescence was enforced (and the mouse was not moving the wheel). This is presumably the only time in the task that we can reliably/consistently say neural signals aren't attributable to wheel movement. Thanks for the update. Do you have an estimate for when this might be implemented? |
Beta Was this translation helpful? Give feedback.
-
If you want a quick way of checking from the raw data in ephys sessions before looking for the file:
Luckily I've already implemented this in the Contrast and probaboility extractor and you can reuse the code easily. This should do the trick for a given session_path: import ibllib.io.extractors.ephys_fpga as ephys_fpga
import ibllib.io.raw_data_loaders as raw
session_path = "PATH_TO/FlatIron/mrsicflogellab/Subjects/SWC_054/2020-10-10/001"
data = raw.load_data(session_path)
settings = raw.load_settings(session_path)
pregen_data = ephys_fpga.ProbaContrasts.get_pregenerated_events(data, settings)
pregen_data.keys()
# dict_keys(['position', 'quiescence', 'phase', 'probabilityLeft', 'contrastRight', 'contrastLeft'])
pregen_data['quiescence'] |
Beta Was this translation helpful? Give feedback.
-
Hey Nicco, To follow up on this, I tried using the code you provided but getting an error "AttributeError: type object 'ProbaContrasts' has no attribute 'get_pregenerated_events'". I downloaded the raw_behavior_data using code that mayo suggested: Then ran the code you suggested. Any idea what the issue might be? Also, is there a way I can restrict dsets so that it only downloads relevant files? (what it downloaded for this session was pretty large. eid = '54238fd6-d2d0-4408-b1a9-d19d24fd29ce') |
Beta Was this translation helpful? Give feedback.
-
Hey Nate :) |
Beta Was this translation helpful? Give feedback.
-
Ah, I see. Well, that's an issue for now as I'm using an older branch of ibllib (guido-WIP) for dome decoding analysis. Is there maybe some file(s) I could copy over from master to fix the issue temporarily? Also, if I read what you said in this thread initially correctly, given that there's a 0.2s fixed delay and at least 0.2s quiescent period before each trial start, is it correct to assume there is at least 400ms quiescent period before each trial? Is quiescence enforced during the fixed delay period as well or no? Ie, is it possible that mice move during the fixed delay period and the trial starts anyway? |
Beta Was this translation helpful? Give feedback.
-
You have to ask guido-WIP to keep the branch up to date with deveop by either fastforwarding it if possible or merging develop in his branch... Answering your other questions: Yes, Yes, No |
Beta Was this translation helpful? Give feedback.
-
great, thanks Nicco |
Beta Was this translation helpful? Give feedback.
-
Hi, question: from what I understand about our task, there is a random amount of time (something like 200-400ms) generated for each trial in which the animal is required to hold the wheel still before the goCue is presented. do you know where that time is stored for each trial? I've looked in the trials object, but don't seem to see it, maybe it can be calculated using other values within the trials object?
alf.io.load_object(ses_path, object = "trials", namespace = "ibl")
Beta Was this translation helpful? Give feedback.
All reactions