Skip to content

Commit b1dc414

Browse files
authored
Merge pull request #69 from InPreD/develop_OUS
Fix the bug to make the PRONTO could read MTF file in OUS.
2 parents da28cfb + e34fe6a commit b1dc414

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Script/PRONTO.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,18 +1216,18 @@ def main(argv):
12161216
""")
12171217
sys.exit(0)
12181218
if(update_clinical_file == True):
1219-
material_file_version = int(cfg.get("INPUT", "material_file_version"))
1220-
if(material_file_version <= 2023):
1219+
material_file_version = cfg.get("INPUT", "material_file_version")
1220+
if(int(material_file_version) <= 2023):
12211221
ipd_material_file_2023 = base_dir + "/In/MTF/" + ipd_no[:3] + '-' + ipd_no[3:] + "_Material Transit Form InPreD NGS.xlsx"
1222-
if(material_file_version > 2023):
1222+
if(int(material_file_version) > 2023):
12231223
ipd_material_file_new = base_dir + "/In/MTF/" + ipd_no[:3] + '-' + ipd_no[3:] + "_Material Transit Form InPreD NGS_" + material_file_version + ".xlsx"
12241224
if not(os.path.exists(ipd_material_file_new) or os.path.exists(ipd_material_file_2023)):
12251225
print ("""Error: IPD Material Transit Form InPreD NGS file does not exit under the MTF dir. PRONTO meta file could not be updated with patient personal information by parameter -c of this script!""")
12261226
sys.exit(0)
12271227
if not(re.fullmatch(DNA_sampleID_format, DNA_sampleID)):
12281228
print("Warning: " + DNA_sampleID + " does not fit for the sample id format!")
12291229
else:
1230-
sample_list_file = pronto.glob_tsoppi_file(data_path, runID_DNA, DNA_sampleID, 'sample_list.tsv')
1230+
sample_list_file = pronto.glob_tsoppi_file(True, data_path, runID_DNA, DNA_sampleID, 'sample_list.tsv')
12311231
for line in open(sample_list_file):
12321232
if(line.startswith("RNA_tumor")):
12331233
RNA_sampleID = line.split('\t')[1]

0 commit comments

Comments
 (0)