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

Shell executable added #31

Closed kcho closed 1 year ago

kcho commented 1 year ago

This PR added a shell executable python code, calling get_run_sheet_df on Pronet and Prescient PHOENIX directories. It also runs dataflow_dpdash function to create dpdash loadable CSV files.

How to run the shell executable code

# add qqc to PYTHONPATH
export PYTHONPATH=/PATH/TO/BRANCH/qqc:$PYTHONPATH
python scripts/mriflow_check.py -d

This will create /data/predict1/data_from_nda/MRI_ROOT/flow_check/mri_data_flow.csv that summarizes MRI dataflow, and DPDash importable csv files in the same directory.

kcho commented 1 year ago

The following line is added to the crontab to execute mriflow_check.py -d at 7AM every morning. (on hna002 node)

# crontab -e
# MRI dataflow check
0 7 * * * PYTHONPATH=/data/predict1/home/kcho/software/tmp/qqc:${PYTHONPATH} BASH_ENV=/PHShome/kc244/preload.sh /data/pnl/kcho/anaconda3/bin/python /data/predict1/home/kcho/software/tmp/qqc/scripts/mriflow_check.py -d > /dev/null 2>&1
nickckim commented 1 year ago

Looks great!