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

Function to re-run QQC if there is more recent MRI transfer #57

Open kcho opened 10 months ago

kcho commented 10 months ago

We frequently encounter situations where MRI data, such as sessions with partially uploaded data to Yale XNAT, need to be re-transferred. It's crucial for QQC to verify that its reports are based on the latest zip file transferred to DPACC. To ensure this, we can compare the last modified time of the zip file in the PHOENIX directory with the timestamp of the existing QQC output HTML file.

kcho commented 10 months ago

The provided line identifies the session selected for Quality Control Check (QQC) execution: GitHub Link to QQC Selection Line

To enhance this process, we need to implement two new functions:

  1. A function to check the modified dates of:

    • The QQC HTML file output.
    • The MRI zip file.
  2. A function to delete the session-specific directories in the following locations:

    • sourcedata
    • rawdata
    • rawdata/.heudiconv
    • derivatives/quick_qc

These functions should then be integrated to update our current logic for more efficient session handling and QQC execution.