AMP-SCZ / qqc

Checking signals in the AMP-SCZ phantom
https://phantom-check.readthedocs.io/en/latest/
Apache License 2.0
0 stars 1 forks source link

Automatically re-run QQC on the sessions without the run sheet #55

Open kcho opened 9 months ago

kcho commented 9 months ago

If an MRI zip file arrives at DPACC before the run sheet does, the QQC will save the report without the run sheet table. We need a system to track these sessions without the run sheet and automatically re-run QQC once the corresponding run sheet arrives at DPACC to add it to the report.

nickckim commented 9 months ago

Any thoughts @kcho @owenborders

1) QQC only runs when there is a zip file and corresponding runsheet.

2) QQC runs when there is a zip file. We add a boolean for 'runsheet exists' to QQC report. If gspread notices False, re-run QQC.

kcho commented 9 months ago

I think option 1 may delay DPACC spotting potential protocol changes or missing data. I prefer option 2.

nickckim commented 9 months ago

New column in called html_runsheet_gs that displays either "Runsheet found" or "Runsheet absent". Code currently loops through htmls after the fact. It may be better to eventually update code to perform this check earlier on.

nickckim commented 8 months ago

See remove_html_to_rerun_with_runsheet.py in ampscz_mri_ss.

•If html_runsheetgs in QC Sheet says "Runsheet absent" •Go into PHOENIX directory for subses •Read scan dates for all runsheets found •If a scan date matches the date in subses •As of now it prints a list of paths of qqc html to delete. We can automatically delete them too._