Skip to content

Commit

Permalink
lib: fix Gwas Catalog builder for clinical variants, #TASK-5776, #TAS…
Browse files Browse the repository at this point in the history
…K-5564
  • Loading branch information
jtarraga committed Apr 4, 2024
1 parent c2345d4 commit df0f1e0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void parse() throws IOException, RocksDBException, CellBaseException {
// GWAS catalog
Path gwasFile = clinicalVariantFolder.resolve(Paths.get(configuration.getDownload().getGwasCatalog().getHost()).getFileName());
if (gwasFile != null && Files.exists(gwasFile)) {
Path dbsnpFile = clinicalVariantFolder.resolve(configuration.getDownload().getHgmd().getFiles().get(0));
Path dbsnpFile = clinicalVariantFolder.resolve(configuration.getDownload().getGwasCatalog().getFiles().get(0));
if (dbsnpFile != null && Files.exists(dbsnpFile)) {
Path tabixFile = Paths.get(dbsnpFile.toAbsolutePath() + ".tbi");
if (tabixFile != null && Files.exists(tabixFile)) {
Expand All @@ -125,7 +125,6 @@ public void parse() throws IOException, RocksDBException, CellBaseException {
serializer.close();
throw e;
}

}

private Path getPathFromHost(String host) throws CellBaseException {
Expand Down

0 comments on commit df0f1e0

Please sign in to comment.