Skip to content

Commit

Permalink
Merge pull request #217 from Sage-Bionetworks/fusion-no-symbol-validate
Browse files Browse the repository at this point in the history
No need to check symbols for fusions
  • Loading branch information
thomasyu888 authored Nov 14, 2019
2 parents c78c0d3 + ed92075 commit 565b0d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions genie/fusions.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ def _validate(self, fusionDF, noSymbolCheck, testing=False):
bed = self.syn.tableQuery("select Hugo_Symbol, ID from %s where CENTER = '%s'" % (bedSynId, self.center))
bedDf = bed.asDataFrame()
#invalidated_genes = self.pool.map(process_functions.validateSymbol, fusionDF["HUGO_SYMBOL"].drop_duplicates())
fusionDF = fusionDF.drop_duplicates("HUGO_SYMBOL").apply(lambda x: validateSymbol(x, bedDf), axis=1)
if fusionDF["HUGO_SYMBOL"].isnull().any():
total_error += "Your fusion file should not have any NA/blank Hugo Symbols.\n"

# fusionDF = fusionDF.drop_duplicates("HUGO_SYMBOL").apply(lambda x: validateSymbol(x, bedDf), axis=1)

# if process_functions.checkColExist(fusionDF, "DNA_SUPPORT"):
# if not fusionDF.DNA_SUPPORT.isin(["yes","no","unknown"]).all():
# total_error += "Your fusion file's DNA_SUPPORT column must be 'yes', 'no', or 'unknown'"
Expand Down

0 comments on commit 565b0d0

Please sign in to comment.