juliencarponcy / trialexp

MIT License
2 stars 4 forks source link

Snakemake refactor #11

Closed teristam closed 1 year ago

teristam commented 1 year ago

This PR provides the initial implementation of a snakemake workflow for analysis of pycontrol and pyphotometry data. It assumes a session-based folder structure. Detailed usage can be be seen in the workflow/README.md file. May contain some bugfix in compute_success function. It currently can

  1. Read pycontrol file and extract trial information based on the trigger definition in tasks_params.csv
  2. Export spike2 file with state and event information automatically
  3. Align pyphotometry data with pycontrol and save the output as xarray
  4. Plot the event-aligned photometry data

While the change shouldn't affect the current pipeline, better not to merge before making sure it doesn't affect the current Experiment-object based pipeline