Skip to content

Commit

Permalink
Ignore gene described in the CNA Discrete Long file if it cannot be f…
Browse files Browse the repository at this point in the history
…ound in the database
  • Loading branch information
oplantalech committed Feb 14, 2024
1 parent f576a2b commit 51371c3
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 51371c3

Please sign in to comment.