AllenInstitute / AllenSDK

code for reading and processing Allen Institute for Brain Science data
https://allensdk.readthedocs.io/en/latest/
Other
340 stars 150 forks source link

event trace in boc #2521

Open alih100011 opened 2 years ago

alih100011 commented 2 years ago

Hi! Thank you for your answer. I can extract df/f by use get_dff_traces : ts, dff = data_set.get_dff_traces() But I cann't use data_set.get.events() or data_set.get_all_events() (in Allen SDK Documentation page 210)(Feb2022 version) because it has this error: AttributeError: 'BrainObservatoryNwbDataSet' object has no attribute 'get_all_events'

what should I do to extract event traces for this data_set in boc?

Thank you!

alih100011 commented 2 years ago

For more information: boc = BrainObservatoryCache(manifest_file='boc/manifest.json') data_set = boc.get_ophys_experiment_data(501498760)

aamster commented 2 years ago

It doesn't appear that BrainObservatoryNwbDataSet exposes event detection. Can you please link to the documentation where you are reading that it has a method get_all_events ?

alih100011 commented 2 years ago

https://allensdk.readthedocs.io/_/downloads/en/stable/pdf/

get_all_events() (allensdk.brain_observatory.sync_dataset.Dataset method), 248

get_all_events(self ) Returns all counter values and their cooresponding IO state. .................................................................................................................................................................................... but In my thesis ,I need to use "event trace" in this experiment (501498760) .Do you know how I can extract event traces for this experiment?

Thank you

aamster commented 2 years ago

@mabuice , @alih100011 is trying to extract events for an experiment in the visual coding ophys dataset, but it doesn't look like we expose event detection for this dataset. What do you recommend @alih100011 does?

alih100011 commented 1 year ago

Hi!

Is it in 2023 "event_trace"Not added to the boc dataset ?

And how can I get it directly from df/f myself?

Thank you!

saskiad commented 1 year ago

The events are accessed from the boc and not from the dataset:

events = boc.get_ophys_experiment_events(ophys_experiment_id=session_id)