Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Tumor_Sample_Barcode as column name in clinical file #215

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions AnnotatorCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down
Loading