From 879c9c4b73d8893b47210743214bd1637e5ed475 Mon Sep 17 00:00:00 2001 From: Hongxin <5400599+zhx828@users.noreply.github.com> Date: Wed, 14 Feb 2024 16:07:03 -0600 Subject: [PATCH] Support Tumor_Sample_Barcode as column name in clinical file --- AnnotatorCore.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AnnotatorCore.py b/AnnotatorCore.py index f0b4fca..a448a7d 100644 --- a/AnnotatorCore.py +++ b/AnnotatorCore.py @@ -1286,7 +1286,7 @@ def process_clinical_data(annotatedmutfiles, clinicalfile, outfile): outf.write('\tHIGHEST_PX_LEVEL') outf.write( '\tONCOGENIC_MUTATIONS\t#ONCOGENIC_MUTATIONS\tRESISTANCE_MUTATIONS\t#RESISTANCE_MUTATIONS\t#MUTATIONS_WITH_SENSITIVE_THERAPEUTIC_IMPLICATIONS\t#MUTATIONS_WITH_RESISTANCE_THERAPEUTIC_IMPLICATIONS\t#MUTATIONS_WITH_DIAGNOSTIC_IMPLICATIONS\t#MUTATIONS_WITH_PROGNOSTIC_IMPLICATIONS\t#MUTATIONS\n') - isample = headers['SAMPLE_ID'] + isample = geIndexOfHeader(headers, SAMPLE_HEADERS) for row in reader: sample = row[isample] @@ -1912,8 +1912,8 @@ def readCancerTypes(clinicalFile, data): reader = csv.reader(infile, delimiter='\t') headers = readheaders(reader) - iSample = geIndexOfHeader(headers, ['SAMPLE_ID']) - iCancerType = geIndexOfHeader(headers, ['ONCOTREE_CODE', 'CANCER_TYPE']) + iSample = geIndexOfHeader(headers, SAMPLE_HEADERS) + iCancerType = geIndexOfHeader(headers, CANCER_TYPE_HEADERS) for row in reader: data[row[iSample]] = row[iCancerType]