Skip to content

Commit

Permalink
Fixes #922 "Can't open .igv files from pre-signed URLs"
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Apr 24, 2021
1 parent cef0476 commit 8d58cc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/org/broad/igv/data/IGVDatasetParser.java
Expand Up @@ -83,9 +83,8 @@ public IGVDatasetParser(ResourceLocator copyNoFile, Genome genome) {
}

private void setColumnDefaults() {
String tmp = (dataResourceLocator.getPath().endsWith(".txt")
? dataResourceLocator.getPath().substring(0,
dataResourceLocator.getPath().length() - 4) : dataResourceLocator.getPath()).toLowerCase();

String tmp = dataResourceLocator.getTypeString();

if (tmp.endsWith(".igv")) {
chrColumn = 0;
Expand Down
2 changes: 2 additions & 0 deletions test/data/batch/issue_922.txt
@@ -0,0 +1,2 @@
genome hg19
load https://s3.amazonaws.com/igv.org.test/data/recombRate.igv.txt?foobar=blah

0 comments on commit 8d58cc5

Please sign in to comment.