Skip to content

Commit

Permalink
Add test case for tabix indexed gff file without file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Aug 9, 2024
1 parent 25c83c2 commit a9dafc3
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 1 deletion.
Binary file added dev/annotation/noextensions/bgzipped_gff
Binary file not shown.
Binary file added dev/annotation/noextensions/bgzipped_gff_index
Binary file not shown.
48 changes: 48 additions & 0 deletions dev/annotation/noextensions/no_extensions.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="author" content="Jim Robinson">
<link rel="shortcut icon" href="https://igv.org/web/https://igv.org/web/img/favicon.ico">
<title>igv.js</title>
</head>

<body>

<p>

<h1>Test a tabix indexed GFF file with no extension</h1>

<div id="igvDiv" style="padding-top: 10px;padding-bottom: 10px; border:1px solid lightgray"></div>

<script type="module">

import igv from "https://cdn.jsdelivr.net/npm/[email protected]/dist/igv.esm.min.js";

var options =
{
genome: "hg38",
locus: "myc",
tracks:
[
{
name: "Genes",
format: "gff3",
url: `bgzipped_gff`,
indexURL: `bgzipped_gff_index`
}
]
};

var igvDiv = document.getElementById("igvDiv");

igv.createBrowser(igvDiv, options)
.then(function (browser) {
console.log("Created IGV browser");
})


</script>

</body>

</html>
2 changes: 1 addition & 1 deletion js/genome/chromAliasBB.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ChromAliasBB {
}

/**
* Return the canonical chromosome name for the alias. If none found return the alias.
* Return the cached canonical chromosome name for the alias. If none found return the alias.
*
* Note this will only work if a "search" for ths chromosome has been performed previously.
*
Expand Down

0 comments on commit a9dafc3

Please sign in to comment.