Skip to content

Commit

Permalink
Merge pull request #136 from Sage-Bionetworks/hotfix
Browse files Browse the repository at this point in the history
Urgent: mutincis maf flag, clinical file duplication bugs
  • Loading branch information
thomasyu888 authored Jun 4, 2019
2 parents 30de946 + 4c861c5 commit 9ad8aa4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions genie/database_to_staging.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,8 @@ def stagingToCbio(
header = mafFile.readline()
headers = header.replace("\n", "").split("\t")
headers.append("mutationInCis_Flag")
# New header
header = "\t".join(headers) + "\n"
if index == 0:
with open(MUTATIONS_PATH, 'a') as f:
f.write(header)
Expand Down
5 changes: 5 additions & 0 deletions genie/input_to_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,11 @@ def validation(syn, center, process, center_mapping_df, databaseToSynIdMappingDf
cbsSegFiles = inputValidStatus[cbsSegBool]
if len(cbsSegFiles) >1:
duplicatedFiles = duplicatedFiles.append(cbsSegFiles)
clinical_bool = ["clinical" in i for i in inputValidStatus['name']]
clinical_files = inputValidStatus[clinical_bool]
if len(clinical_files) > 2:
duplicatedFiles = duplicatedFiles.append(clinical_files)

# nodups = ["data_mutations_extended"]
# allDuplicatedFiles = []
# for nodup in nodups:
Expand Down

0 comments on commit 9ad8aa4

Please sign in to comment.