Skip to content

Commit

Permalink
Merge pull request #10 from cBioPortal/fix_cna_discrete_long_bug
Browse files Browse the repository at this point in the history
Ignore gene described in the CNA Discrete Long file if it cannot be found in the database
  • Loading branch information
JREastonMarks authored Feb 14, 2024
2 parents 56afc80 + 51371c3 commit c591f16
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,11 @@ private CanonicalGene getGene(
if (genes.size() > 1) {
throw new IllegalStateException("Found multiple genes for Hugo symbol " + hugoSymbol + " while importing cna");
}
// Ignore gene if it cannot be found in the database
if (genes.size() < 1) {
ProgressMonitor.logWarning("Ignoring Hugo symbol " + hugoSymbol + "not found in the database");
return null;
}
return genes.get(0);
}
ProgressMonitor.logWarning("Entrez_Id " + entrez + " not found. Record will be skipped for this gene.");
Expand Down

0 comments on commit c591f16

Please sign in to comment.