#from ManageFreesurfer.FS_Study import FS_Study #import run_freesurfer print "Reading CogRes Study" study = Study('/share/studies/CogRes', 'CogRes') os.chdir(study.path) studydata = databin() studydata.maintainer = 'Nikhil Chandra' studydata.maintainer_email = '*****@*****.**' studydata.dcmqr_object = dcmqr_wrapper(dcmqr_path='dcmqr', dcm4chee_inst='[email protected]:11112', dcmqr_inst='[email protected]:11139', dcmrcv_inst='CogRes') #studydata.dcmqr_args_list = [studydata.dcmqr_object.get_dcmqr_args(PatientName='*COGRES*'), # studydata.dcmqr_object.get_dcmqr_args(PatientName='*BAY0596*')] studydata.dcmqr_args_list = [studydata.dcmqr_object.get_dcmqr_args(PatientName='*COGRES*')] studydata.db_connection = db_connect(host='156.145.15.135', port=3306, user='******', passwd='ticabl', db='MRIQualityControl') studydata.db_connection_main = db_connect_main(host='156.145.15.135', port=3306, user='******', passwd='ticabl', db='cnsdivdb') format_CSVs(['CSV/Subject_List/CogRes_Subjects.csv'], 'CSV/Subject_List/ref_list.csv', accepted_headings=['MRI1', 'MRI2', 'MRI3', 'PET']) studydata.ref_csv = CSV_Ref(os.path.join(study.path, 'CSV', 'Subject_List', 'ref_list.csv')) dcmrcv_port='11114' #studydata.fs_study = FS_Study(os.path.join(study.path, 'FreeSurfer'), '/usr/local/aleksey/freesurfer/freesurfer5_1', fsIDRE='^P[0-9]{8}_S[0-9]{4}$') def check_AE_port(): Str="dcmecho "+studydata.dcmqr_object.dcmrcv_inst+"@10.115.15.198:"+dcmrcv_port RET=os.system(Str) if RET>0: print "WARNING: dcmrcv is not running so no data can be imported." else: print "dcmrcv is up and running!!" return RET
dcmrcv_inst='RANN') studydata.dcmqr_args_list = [ studydata.dcmqr_object.get_dcmqr_args(PatientName='*RANN_4*') ] studydata.db_connection = db_connect(host='156.145.15.135', port=3306, user='******', passwd='ticabl', db='MRIQualityControl') studydata.db_connection_main = db_connect_main(host='156.145.15.135', port=3306, user='******', passwd='ticabl', db='cnsdivdb') format_CSVs(['CSV/Subject_List/RANN_Subjects.csv'], 'CSV/Subject_List/ref_list.csv', accepted_headings=['MRI1', 'MRI2', 'MRI3']) studydata.ref_csv = CSV_Ref( os.path.join(study.path, 'CSV', 'Subject_List', 'ref_list.csv')) #studydata.fs_study = FS_Study(os.path.join(study.path, 'FreeSurfer'), '/usr/local/aleksey/freesurfer/freesurfer5_1', fsIDRE='^P[0-9]{8}_S[0-9]{4}$') dcmrcv_port = '11121' #studydata.fs_study = FS_Study(os.path.join(study.path, 'FreeSurfer'), '/usr/local/aleksey/freesurfer/freesurfer5_1', fsIDRE='^P[0-9]{8}_S[0-9]{4}$') def check_AE_port(): Str = "dcmecho " + studydata.dcmqr_object.dcmrcv_inst + "@10.115.15.198:" + dcmrcv_port RET = os.system(Str) if RET > 0: print "WARNING: dcmrcv is not running so no data can be imported." else: