AllenSDK icon indicating copy to clipboard operation
AllenSDK copied to clipboard

event trace in boc

Open alih100011 opened this issue 2 years ago • 6 comments

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 avatar Aug 16 '22 06:08 alih100011

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

alih100011 avatar Aug 16 '22 07:08 alih100011

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 ?

aamster avatar Aug 16 '22 14:08 aamster

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

alih100011 avatar Aug 17 '22 12:08 alih100011

@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?

aamster avatar Aug 17 '22 13:08 aamster

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!

alih100011 avatar Feb 02 '23 07:02 alih100011

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

events = boc.get_ophys_experiment_events(ophys_experiment_id=session_id)

saskiad avatar Aug 04 '23 04:08 saskiad