Skip to content

Commit

Permalink
Merge pull request #163 from Sage-Bionetworks/remove-maf-header
Browse files Browse the repository at this point in the history
URGENT: Remove maf header
  • Loading branch information
thomasyu888 authored Jul 3, 2019
2 parents ae9585f + 7d914f5 commit 24769c3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions genie/consortium_to_public.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,13 @@ def consortiumToPublic(syn, processingDate, genie_version, releaseId, databaseSy

elif "mutation" in entName:
mutation = syn.get(entId, followLink=True)
with open(mutation.path, 'r') as f:
sequenced_samples = f.readline()
mutationDf = pd.read_csv(mutation.path, sep="\t", comment="#")
mutationDf = commonVariantFilter(mutationDf)
mutationDf['FILTER'] = "PASS"
mutationDf = mutationDf[mutationDf['Tumor_Sample_Barcode'].isin(publicReleaseSamples)]
text = process.removeFloat(mutationDf)
with open(MUTATIONS_PATH, 'w') as f:
f.write(sequenced_samples)
f.write(text)
f.write(text)
storeFile(syn, MUTATIONS_PATH, PUBLIC_RELEASE_PREVIEW, ANONYMIZE_CENTER_DF, genie_version, name="data_mutations_extended.txt")

elif "fusion" in entName:
Expand Down

0 comments on commit 24769c3

Please sign in to comment.