コード例 #1
0
from __future__ import with_statement
import os, csv, shutil, tarfile, uf, dcm_ops

dest_root = "/ifs/scratch/pimri/soccog/test_working"
dst_path_lst = ["7432", "run1M1"]
uf.buildtree(dest_root, dst_path_lst)
uf.copytree(
    "/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2480/e1331017/s1342840_5610_1M1_s13",
    "/ifs/scratch/pimri/soccog/test_working/7432/run1M1",
)
t = tarfile.open(os.path.join("/ifs/scratch/pimri/soccog/test_working/7432/run1M1", "MRDC_files.tar.gz"), "r")
t.extractall("/ifs/scratch/pimri/soccog/test_working/7432/run1M1")
for f in os.listdir("/ifs/scratch/pimri/soccog/test_working/7432/run1M1"):
    if "MRDC" in f and "gz" not in f:
        old = os.path.join("/ifs/scratch/pimri/soccog/test_working/7432/run1M1", f)
        new = os.path.join("/ifs/scratch/pimri/soccog/test_working/7432/run1M1", f + ".dcm")
        os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm(
    "/ifs/scratch/pimri/soccog/test_working/7432/run1M1",
    "7432_run1M1",
    "/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv",
)
# qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7432/run1M1', '7432_run1M1', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #2
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7659', 'run2L3']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/3240/E3240_e1826369/s1879741_1904_2L3_s23', '/ifs/scratch/pimri/soccog/test_working/7659/run2L3')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7659/run2L3','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7659/run2L3')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7659/run2L3'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7659/run2L3', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7659/run2L3', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7659/run2L3', '7659_run2L3', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7659/run2L3', '7659_run2L3', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #3
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7726', 'run1L5']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/3274/E3274_e2535432/s2543070_1904_1L5_s7', '/ifs/scratch/pimri/soccog/test_working/7726/run1L5')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7726/run1L5','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7726/run1L5')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7726/run1L5'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7726/run1L5', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7726/run1L5', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7726/run1L5', '7726_run1L5', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7726/run1L5', '7726_run1L5', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #4
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7508', 'run2L1']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2590/E2590_e460122/s505794_1904_2L1_s21', '/ifs/scratch/pimri/soccog/test_working/7508/run2L1')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7508/run2L1','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7508/run2L1')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7508/run2L1'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7508/run2L1', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7508/run2L1', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7508/run2L1', '7508_run2L1', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7508/run2L1', '7508_run2L1', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #5
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7714', 'run2M6']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/3189/E3189_e976517/s1061831_5610_2M6_s34', '/ifs/scratch/pimri/soccog/test_working/7714/run2M6')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7714/run2M6','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7714/run2M6')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7714/run2M6'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7714/run2M6', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7714/run2M6', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7714/run2M6', '7714_run2M6', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7714/run2M6', '7714_run2M6', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #6
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7480', 'run2M6']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2693/E2693_e500076/s585434_5610_2M6_s34', '/ifs/scratch/pimri/soccog/test_working/7480/run2M6')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7480/run2M6','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7480/run2M6')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7480/run2M6'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7480/run2M6', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7480/run2M6', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7480/run2M6', '7480_run2M6', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7480/run2M6', '7480_run2M6', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #7
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7561', 'run1L5']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2750/E2750_e766322/s773959_1904_1L5_s7', '/ifs/scratch/pimri/soccog/test_working/7561/run1L5')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7561/run1L5','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7561/run1L5')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7561/run1L5'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7561/run1L5', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7561/run1L5', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7561/run1L5', '7561_run1L5', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7561/run1L5', '7561_run1L5', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #8
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7498', 'anat-2-1']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2592/E2592_e550968/s608726_166_SPGR3_s28', '/ifs/scratch/pimri/soccog/test_working/7498/anat-2-1')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7498/anat-2-1','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7498/anat-2-1')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7498/anat-2-1'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7498/anat-2-1', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7498/anat-2-1', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7498/anat-2-1', '7498_anat-2-1', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7498/anat-2-1', '7498_anat-2-1', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #9
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7498', 'run2M4']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2592/E2592_e550968/s625726_5610_2M4_s32', '/ifs/scratch/pimri/soccog/test_working/7498/run2M4')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7498/run2M4','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7498/run2M4')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7498/run2M4'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7498/run2M4', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7498/run2M4', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7498/run2M4', '7498_run2M4', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7498/run2M4', '7498_run2M4', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #10
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7719', 'run1M3']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/3449/E3449_e1329183/s1352203_5610_s14', '/ifs/scratch/pimri/soccog/test_working/7719/run1M3')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7719/run1M3','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7719/run1M3')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7719/run1M3'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7719/run1M3', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7719/run1M3', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7719/run1M3', '7719_run1M3', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7719/run1M3', '7719_run1M3', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #11
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7430', 'run1L1']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/3575/e3802320/s3802338_1904', '/ifs/scratch/pimri/soccog/test_working/7430/run1L1')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7430/run1L1','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7430/run1L1')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7430/run1L1'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7430/run1L1', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7430/run1L1', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7430/run1L1', '7430_run1L1', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7430/run1L1', '7430_run1L1', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #12
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7432', 'run1L4']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2480/e1331017/s1336750_1904_1L4_s7', '/ifs/scratch/pimri/soccog/test_working/7432/run1L4')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7432/run1L4','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7432/run1L4')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7432/run1L4'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7432/run1L4', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7432/run1L4', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7432/run1L4', '7432_run1L4', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7432/run1L4', '7432_run1L4', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #13
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7714', 'run1L4']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/3189/E3189_e976517/s982250_1904_1L4_s6', '/ifs/scratch/pimri/soccog/test_working/7714/run1L4')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7714/run1L4','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7714/run1L4')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7714/run1L4'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7714/run1L4', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7714/run1L4', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7714/run1L4', '7714_run1L4', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7714/run1L4', '7714_run1L4', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #14
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7508', 'run1L2']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2590/E2590_e460122/s462045_1904_1L2_s4', '/ifs/scratch/pimri/soccog/test_working/7508/run1L2')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7508/run1L2','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7508/run1L2')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7508/run1L2'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7508/run1L2', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7508/run1L2', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7508/run1L2', '7508_run1L2', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7508/run1L2', '7508_run1L2', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #15
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7477', 'run1M5']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2539/E2539_e2401779/s2435892_5610_1M5_s17', '/ifs/scratch/pimri/soccog/test_working/7477/run1M5')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7477/run1M5','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7477/run1M5')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7477/run1M5'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7477/run1M5', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7477/run1M5', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7477/run1M5', '7477_run1M5', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7477/run1M5', '7477_run1M5', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #16
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7561', 'run2M5']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2776/E2776_e1253413/s1287652_5610_1M5_s16', '/ifs/scratch/pimri/soccog/test_working/7561/run2M5')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7561/run2M5','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7561/run2M5')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7561/run2M5'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7561/run2M5', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7561/run2M5', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7561/run2M5', '7561_run2M5', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7561/run2M5', '7561_run2M5', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #17
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7645', 'run1M1']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/3078/E3078_e1370606/s1382422_5610_1M1_s11', '/ifs/scratch/pimri/soccog/test_working/7645/run1M1')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7645/run1M1','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7645/run1M1')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7645/run1M1'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7645/run1M1', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7645/run1M1', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7645/run1M1', '7645_run1M1', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7645/run1M1', '7645_run1M1', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #18
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7623', 'run2L4']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/3140/E3140_e97411/s148605_1904_2L4_s24', '/ifs/scratch/pimri/soccog/test_working/7623/run2L4')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7623/run2L4','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7623/run2L4')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7623/run2L4'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7623/run2L4', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7623/run2L4', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7623/run2L4', '7623_run2L4', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7623/run2L4', '7623_run2L4', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #19
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7480', 'run1M1']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2693/E2693_e500076/s511897_5610_1M1_s12', '/ifs/scratch/pimri/soccog/test_working/7480/run1M1')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7480/run1M1','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7480/run1M1')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7480/run1M1'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7480/run1M1', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7480/run1M1', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7480/run1M1', '7480_run1M1', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7480/run1M1', '7480_run1M1', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #20
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7418', 'run2L3']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/1853/e1094631/s1144242_1904_s23', '/ifs/scratch/pimri/soccog/test_working/7418/run2L3')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7418/run2L3','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7418/run2L3')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7418/run2L3'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7418/run2L3', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7418/run2L3', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7418/run2L3', '7418_run2L3', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7418/run2L3', '7418_run2L3', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #21
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7613', 'anat-1-2']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2908/E2908_e3635490/s3647139_166_fspgr_s10', '/ifs/scratch/pimri/soccog/test_working/7613/anat-1-2')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7613/anat-1-2','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7613/anat-1-2')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7613/anat-1-2'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7613/anat-1-2', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7613/anat-1-2', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7613/anat-1-2', '7613_anat-1-2', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7613/anat-1-2', '7613_anat-1-2', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #22
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7542', 'run2L3']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2727/E2727_e363504/s412819_1904_2L3_s22', '/ifs/scratch/pimri/soccog/test_working/7542/run2L3')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7542/run2L3','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7542/run2L3')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7542/run2L3'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7542/run2L3', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7542/run2L3', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7542/run2L3', '7542_run2L3', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7542/run2L3', '7542_run2L3', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #23
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7477', 'run1L1']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2539/E2539_e2401779/s2401812_1904_1L1_s5', '/ifs/scratch/pimri/soccog/test_working/7477/run1L1')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7477/run1L1','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7477/run1L1')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7477/run1L1'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7477/run1L1', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7477/run1L1', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7477/run1L1', '7477_run1L1', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7477/run1L1', '7477_run1L1', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #24
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7430', 'run2M6']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/3575/e3802320/s3887632_5610', '/ifs/scratch/pimri/soccog/test_working/7430/run2M6')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7430/run2M6','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7430/run2M6')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7430/run2M6'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7430/run2M6', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7430/run2M6', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7430/run2M6', '7430_run2M6', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7430/run2M6', '7430_run2M6', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #25
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7480', 'run1L1']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2693/E2693_e500076/s500095_1904_1L1_s3', '/ifs/scratch/pimri/soccog/test_working/7480/run1L1')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7480/run1L1','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7480/run1L1')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7480/run1L1'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7480/run1L1', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7480/run1L1', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7480/run1L1', '7480_run1L1', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7480/run1L1', '7480_run1L1', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #26
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7418', 'run1M1']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/1853/e1094631/s1106273_5610_s11', '/ifs/scratch/pimri/soccog/test_working/7418/run1M1')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7418/run1M1','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7418/run1M1')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7418/run1M1'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7418/run1M1', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7418/run1M1', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7418/run1M1', '7418_run1M1', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7418/run1M1', '7418_run1M1', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #27
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7645', 'anat-1-1']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/3078/E3078_e1370606/s1382088_166_fspgr_s9', '/ifs/scratch/pimri/soccog/test_working/7645/anat-1-1')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7645/anat-1-1','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7645/anat-1-1')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7645/anat-1-1'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7645/anat-1-1', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7645/anat-1-1', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7645/anat-1-1', '7645_anat-1-1', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7645/anat-1-1', '7645_anat-1-1', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #28
0
from __future__ import with_statement
import os, csv, shutil, tarfile, uf, dcm_ops

dest_root = "/ifs/scratch/pimri/soccog/test_working"
dst_path_lst = ["7478", "run1M3"]
uf.buildtree(dest_root, dst_path_lst)
uf.copytree(
    "/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2489/E2489_e1477970/s1501031_5610_1M3_s14",
    "/ifs/scratch/pimri/soccog/test_working/7478/run1M3",
)
t = tarfile.open(os.path.join("/ifs/scratch/pimri/soccog/test_working/7478/run1M3", "MRDC_files.tar.gz"), "r")
t.extractall("/ifs/scratch/pimri/soccog/test_working/7478/run1M3")
for f in os.listdir("/ifs/scratch/pimri/soccog/test_working/7478/run1M3"):
    if "MRDC" in f and "gz" not in f:
        old = os.path.join("/ifs/scratch/pimri/soccog/test_working/7478/run1M3", f)
        new = os.path.join("/ifs/scratch/pimri/soccog/test_working/7478/run1M3", f + ".dcm")
        os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm(
    "/ifs/scratch/pimri/soccog/test_working/7478/run1M3",
    "7478_run1M3",
    "/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv",
)
# qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7478/run1M3', '7478_run1M3', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #29
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7648', 'run1L4']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/3310/E3310_e161637/s167370_1904_s6', '/ifs/scratch/pimri/soccog/test_working/7648/run1L4')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7648/run1L4','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7648/run1L4')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7648/run1L4'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7648/run1L4', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7648/run1L4', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7648/run1L4', '7648_run1L4', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7648/run1L4', '7648_run1L4', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')
コード例 #30
0
from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7613', 'run1M2']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2908/E2908_e3635490/s3652917_5610_1M2_s12', '/ifs/scratch/pimri/soccog/test_working/7613/run1M2')
t = tarfile.open(os.path.join('/ifs/scratch/pimri/soccog/test_working/7613/run1M2','MRDC_files.tar.gz'), 'r')
t.extractall('/ifs/scratch/pimri/soccog/test_working/7613/run1M2')
for f in os.listdir('/ifs/scratch/pimri/soccog/test_working/7613/run1M2'):
   if 'MRDC' in f and 'gz' not in f:
       old = os.path.join('/ifs/scratch/pimri/soccog/test_working/7613/run1M2', f)
       new = os.path.join('/ifs/scratch/pimri/soccog/test_working/7613/run1M2', f + '.dcm')
       os.rename(old, new)
qsub_cnv_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7613/run1M2', '7613_run1M2', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cnv')
#qsub_cln_out = dcm_ops.cnv_dcm('/ifs/scratch/pimri/soccog/test_working/7613/run1M2', '7613_run1M2', '/ifs/scratch/pimri/soccog/scripts/mastersort/scripts_dir/cln')