higlass-pileup 1.2.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +48 -1
- package/dist/higlass-pileup.js +285 -38
- package/dist/higlass-pileup.min.js +1 -1
- package/dist/index.html +13 -30
- package/dist/worker.js +2 -13
- package/dist/worker.nomin.js +18903 -24886
- package/es/PileupTrack.js +262 -36
- package/es/bam-fetcher-worker.js +243 -166
- package/es/bam-fetcher.js +2 -2
- package/es/bam-utils.js +19 -0
- package/es/chrominfo-utils.js +107 -0
- package/es/index.js +3 -1
- package/package.json +3 -2
- package/src/index.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
v1.4.0
|
|
2
|
+
|
|
3
|
+
- When hovering over the coverage, the genomic range that is covered by the bar is now displayed
|
|
4
|
+
- Added the option `minMappingQuality` which takes an integer. If this is set, reads with a mapping quality lower than the specified value are not displayed.
|
|
5
|
+
- Added the option `outlineMateOnHover`
|
|
6
|
+
- Added the option `highlightReadsBy` which is an array can contain one or more of the value `insertSize`, `pairOrientation`, `insertSizeAndPairOrientation`. Details in the docs.
|
|
7
|
+
|
|
8
|
+
v1.3.1
|
|
9
|
+
|
|
10
|
+
- Added GitHub releases workflow
|
|
11
|
+
- Export PileupTrack as default
|
|
12
|
+
|
|
13
|
+
v1.3.0
|
|
14
|
+
|
|
15
|
+
- `maxTileWidth` option in the `data` section of the track that modifies the tile fetcher
|
|
16
|
+
|
|
1
17
|
v1.2.0
|
|
2
18
|
|
|
3
19
|
- Soft and hard clipped regions are now included in the calculation of an appropriate row for a read. Without that, clipped regions would often overlap with other reads
|
package/README.md
CHANGED
|
@@ -75,7 +75,12 @@ The live scripts can be found at:
|
|
|
75
75
|
"data": {
|
|
76
76
|
"type": "bam",
|
|
77
77
|
"url": "https://pkerp.s3.amazonaws.com/public/bamfile_test/SRR1770413.sorted.bam",
|
|
78
|
-
"chromSizesUrl": "https://pkerp.s3.amazonaws.com/public/bamfile_test/GCF_000005845.2_ASM584v2_genomic.chrom.sizes"
|
|
78
|
+
"chromSizesUrl": "https://pkerp.s3.amazonaws.com/public/bamfile_test/GCF_000005845.2_ASM584v2_genomic.chrom.sizes",
|
|
79
|
+
{
|
|
80
|
+
"options": {
|
|
81
|
+
"maxTileWidth": 30000
|
|
82
|
+
}
|
|
83
|
+
}
|
|
79
84
|
},
|
|
80
85
|
"width": 470
|
|
81
86
|
}
|
|
@@ -100,6 +105,48 @@ The live scripts can be found at:
|
|
|
100
105
|
- Navigate to higlass.io/app and drag the JSON file onto the viewer.
|
|
101
106
|
- Browse away!
|
|
102
107
|
|
|
108
|
+
## Options
|
|
109
|
+
|
|
110
|
+
### Data config
|
|
111
|
+
|
|
112
|
+
**maxTileWidth** - To limit the amount of data that is fetched from the server, HiGlass sets a
|
|
113
|
+
default maximum tile width. This can be modified in the `data` section of the track config. Setting
|
|
114
|
+
it to a large file will let you zoom out further while still fetching data. This is useful for
|
|
115
|
+
viewing low coverage BAM files.
|
|
116
|
+
|
|
117
|
+
### Track options
|
|
118
|
+
|
|
119
|
+
**colorScale** - Array that controls the color of substitutions and highlighted reads. It can take 6 or 11 values. 11 values are required if you want to control highlighted read colors (see the `highlightReadsBy` option). Example:
|
|
120
|
+
```
|
|
121
|
+
"colorScale": [
|
|
122
|
+
"#2c7bb6", //color of A substitutions
|
|
123
|
+
"#92c5de", //color of T substitutions
|
|
124
|
+
"#ffffbf", //color of G substitutions
|
|
125
|
+
"#fdae61", //color of C substitutions
|
|
126
|
+
"#808080", //color of N substitutions
|
|
127
|
+
"#DCDCDC", //color of other substitutions
|
|
128
|
+
"#FF0000", //color of reads with large insert size
|
|
129
|
+
"#0000D1", //color of reads with small insert size
|
|
130
|
+
"#00D1D1", //color of reads with LL orientation (see https://software.broadinstitute.org/software/igv/interpreting_pair_orientations)
|
|
131
|
+
"#555CFA", //color of reads with RR orientation
|
|
132
|
+
"#02A221", //color of reads with RL orientation
|
|
133
|
+
]
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
**outlineReadOnHover** - Highlights the current read on hover.
|
|
137
|
+
|
|
138
|
+
**outlineMateOnHover** - Highlights the mate of the current read on hover. If the mate is a split read,
|
|
139
|
+
both alignments will be highlighted.
|
|
140
|
+
|
|
141
|
+
**highlightReadsBy** - Array that can take the values `insertSize`, `pairOrientation` or `insertSizeAndPairOrientation`:
|
|
142
|
+
- if `insertSize` is set, reads that have a large or small insert size will be highlighted. The thresholds are controlled by the `largeInsertSizeThreshold` and `smallInsertSizeThreshold` track options. `largeInsertSizeThreshold` defaults to `1000`, i.e., 1000 bp. `smallInsertSizeThreshold` is not set by default, i.e, reads with small insert size won't be highlighted.
|
|
143
|
+
- if `pairOrientation` is set, reads with an abnormal mapping orientation are highlighted (e.g. ++,--,-+).
|
|
144
|
+
- if `insertSizeAndPairOrientation` is set, reads with an abnormal mapping orientation that also have abnormal insert sizes are highlighted.
|
|
145
|
+
- if multiple values are set, reads that fulfill any of the conditions are highlighed in the corresponding color.
|
|
146
|
+
- highlight colors can be controlled by extending the `colorScale` track option to 11 values. The additional 5 values will control the large insert size color, small insert size color and the ++, --, -+ mapping orientations (in that order).
|
|
147
|
+
|
|
148
|
+
**minMappingQuality** - If this is set (integer), reads with a mapping quality lower than the specified value are not displayed.
|
|
149
|
+
|
|
103
150
|
## Support
|
|
104
151
|
|
|
105
152
|
For questions, please either open an issue or ask on the HiGlass Slack channel at http://bit.ly/higlass-slack
|