Skip to content

Commit

Permalink
bug fix for fasta genome
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Oct 19, 2024
1 parent d0afb72 commit 2ed14fc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ public Genome loadGenome() throws IOException {
config.setTwoBitURL(genomePath);

} else {
String fastaPath = null;
String fastaPath;
String fastaIndexPath;
if (genomePath.endsWith(".fai")) {
fastaPath = genomePath.substring(0, genomePath.length() - 4);
fastaIndexPath = genomePath;
} else {
fastaPath = genomePath;
fastaIndexPath = genomePath + ".fai";
}

Expand Down

0 comments on commit 2ed14fc

Please sign in to comment.