Skip to content

Commit

Permalink
Resolve Kelsey's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander Rodenburg committed Oct 30, 2019
1 parent 246fbd5 commit 26cb35b
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,11 @@ public static void importData(File geneFile, String genomeBuild) throws IOExcept
Set<String> aliases = new HashSet<String>();

// try to get chr from other column if needed
if (chr.equals("-")) {
if (!parts[6].equals("-")) {
chr = parts[6];
} else {
// skip line if still unable to parse chr
continue;
}
if (chr.equals("-") && !parts[6].equals("-")) {
chr = parts[6];
} else {
// skip line if still unable to parse chr
continue;
}

if (!locusTag.equals("-")) {
Expand Down Expand Up @@ -515,14 +513,16 @@ public static boolean updateLength(String symbol, String chromosome, List<long[]
DaoGeneOptimized daoGeneOptimized = DaoGeneOptimized.getInstance();
CanonicalGene gene = daoGeneOptimized.getNonAmbiguousGene(symbol);

if (gene==null) {
boolean lengthUpdated = false;

if (gene == null) {
ProgressMonitor.logWarning("Unable to retrieve gene by symbol: " +symbol);
return false;
return lengthUpdated;
}

System.out.println(" --> update reference genome gene: " + gene.getHugoGeneSymbolAllCaps());
DaoReferenceGenomeGene daoReferenceGenomeGene = DaoReferenceGenomeGene.getInstance();
boolean lengthUpdated = false;

/// Check if the gene is in the database
ReferenceGenomeGene refGene = daoReferenceGenomeGene.getGene(gene.getEntrezGeneId(), refreneceGenomeId);
/// If it's not in the database, don't add it
Expand Down

0 comments on commit 26cb35b

Please sign in to comment.