Skip to content

Commit

Permalink
Fix unit tests (remove igv.org.genomes dependency)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Sep 4, 2024
1 parent f15d9fa commit 64daf5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
4 changes: 2 additions & 2 deletions test/testBigbed.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,14 @@ table chromatinInteract

this.timeout(10000)

const url = "https://s3.amazonaws.com/igv.org.genomes/hg38/clinvarMain.bb",
const url = "https://hgdownload.soe.ucsc.edu/gbdb/hg38/bbi/clinvar/clinvarMain.bb",
chr = "chr22",
start = 23786974,
end = 23787050

const bwReader = new BWReader({url: url})
const features = await bwReader.readFeatures(chr, start, chr, end)
assert.equal(features.length, 3)
assert.equal(features.length, 4)

})

Expand Down
24 changes: 0 additions & 24 deletions test/testTabix.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,30 +65,6 @@ suite("testTabix", function () {
}
})

test("CSI query - gff", async function () {

this.timeout(200000)

const chr = "10",
beg = 400000,
end = 500000

const reader = new FeatureFileReader({
format: "gff3",
url: "https://s3.amazonaws.com/igv.org.genomes/hg38/Homo_sapiens.GRCh38.94.chr.gff3.gz",
indexURL: "https://s3.amazonaws.com/igv.org.genomes/hg38/Homo_sapiens.GRCh38.94.chr.gff3.gz.csi"
})
await reader.readHeader()
const features = await reader.readFeatures(chr, beg, end)
assert.ok(features)

const len = features.length
assert.ok(len > 0)
for (let i = 1; i < len - 1; i++) {
const f = features[i]
assert.equal(f.chr , chr)
}
})
})


Expand Down

0 comments on commit 64daf5a

Please sign in to comment.