-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recognize #gffTags directive in bed files and treat "name" property a…
…ccordingly, consistent with IGV desktop. See #1550
- Loading branch information
Showing
4 changed files
with
58 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<!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 of a CSI index with a gtf file</h1> | ||
|
||
<div id="igvDiv" style="padding-top: 10px;padding-bottom: 10px; border:1px solid lightgray"></div> | ||
|
||
<script type="module"> | ||
|
||
import igv from "../../js/index.js"; | ||
|
||
var options = | ||
{ | ||
genome: "hg19", | ||
locus: "chr1:1000-2000", | ||
tracks: | ||
[ | ||
{ | ||
name: "gff tags", | ||
format: "bed", | ||
url: `../../test/data/bed/gfftags.bed`, | ||
} | ||
] | ||
}; | ||
|
||
var igvDiv = document.getElementById("igvDiv"); | ||
|
||
igv.createBrowser(igvDiv, options) | ||
.then(function (browser) { | ||
console.log("Created IGV browser"); | ||
}) | ||
|
||
|
||
</script> | ||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#gffTags | ||
track name="chr1" description="chr1 Annotations" itemRgb="On" | ||
chr1 1088 1128 Key1=INS230;Key2=Foo 0 + 1088 1088 65,105,225 | ||
chr1 1088 1128 Key1=INS230;Key2=Foo;Name=INS230 0 + 1088 1088 65,105,225 | ||
chr1 133 2809 Key2=Bar;Key1=terminator 0 + 133 133 65,105,225 | ||
chr1 1301 1746 Key1=M13 origin;Key2=Baz 0 + 1301 1301 65,105,225 | ||
chr1 1301 1746 Key1=M13 origin;Key2=Baz 0 + 1301 1301 65,105,225 |