Open alexpiet opened 3 days ago
Ok. So first, you best source of information on this is @dbirman
Here are some useful instructions. https://aind-data-schema.readthedocs.io/en/latest/quality_control.html
Here is an example QC capsule template : https://github.com/AllenNeuralDynamics/aind-qc-capsule-example/blob/main/code/run_capsule.py
Here is the QC portal that is pulling those metrics real-time (4h delay currently). https://qc.allenneuraldynamics.org/qc_portal_app
I would recommend you both block one or 2 afternoon of work to get this started.
Is there data? (NAN, number of frames) if <1200frames (=1min), likely a test sessions or alike Are there NaNs in either the raw FIP data or processed FIP data?
number of ROI (columnN of the CSV) correct? checking the source CSV (maybe QA) and nwb packaged data
Some metric of SNR. histgram of raw values to see baseline intensity, fluctuations
Is there saturation ? if == 65535 (16bit)
Is the trace stable? histgram of 1st derivative, outlier detection (>% of sliding baseline mean, etc)
Are there dropped frames? number of frames for 3 ch the same? same as number of sync pulses? (but can be QA-level)
Is there cross-talk between channels? correlations between fibers/channels but can be tricky as we may be actually measuring highly correlated signals.
Is there bleaching? histogram of subtracted bleaching?
Is there timing issues? Different channels locked to one another properly. TBD what would be the best (should be agnostic to specific behavior)