Open kcho opened 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.
I think option 1 may delay DPACC spotting potential protocol changes or missing data. I prefer option 2.
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.
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._
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.