moved functions from QC_agv_preQC.py to QC_agv_postQC.py