Skip to content

Commit

Permalink
Merge pull request #31 from higlass/kerpedji/paired-ends
Browse files Browse the repository at this point in the history
View reads as pairs
  • Loading branch information
pkerpedjiev authored Nov 30, 2024
2 parents b327356 + 06d2279 commit 47946d1
Show file tree
Hide file tree
Showing 6 changed files with 577 additions and 539 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ The live scripts can be found at:

- https://unpkg.com/higlass-pileup/dist/higlass-pileup.min.js

## Things that haven't been thoroughly tested

1. Group by strand when using single vs. paired end reads
2. Group by HP tag when using single vs. paired end reads

### Client

1. Make sure you load this track prior to `hglib.js`. For example:
Expand Down Expand Up @@ -118,6 +123,7 @@ viewing low coverage BAM files.
### Track options

**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:

```
"colorScale": [
"#2c7bb6", //color of A substitutions
Expand All @@ -129,17 +135,18 @@ viewing low coverage BAM files.
"#FF0000", //color of reads with large insert size
"#0000D1", //color of reads with small insert size
"#00D1D1", //color of reads with LL orientation (see https://software.broadinstitute.org/software/igv/interpreting_pair_orientations)
"#555CFA", //color of reads with RR orientation
"#02A221", //color of reads with RL orientation
"#555CFA", //color of reads with RR orientation
"#02A221", //color of reads with RL orientation
]
```

**outlineReadOnHover** - Highlights the current read on hover.

**outlineMateOnHover** - Highlights the mate of the current read on hover. If the mate is a split read,
**outlineMateOnHover** - Highlights the mate of the current read on hover. If the mate is a split read,
both alignments will be highlighted.

**highlightReadsBy** - Array that can take the values `insertSize`, `pairOrientation` or `insertSizeAndPairOrientation`:

- 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.
- if `pairOrientation` is set, reads with an abnormal mapping orientation are highlighted (e.g. ++,--,-+).
- if `insertSizeAndPairOrientation` is set, reads with an abnormal mapping orientation that also have abnormal insert sizes are highlighted.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"scripts": {
"build-es": "rm -rf ./es/* && npx babel ./src/ --out-dir ./es/ --env-name esm",
"build": "npm run build-es && webpack --mode production",
"start": "webpack serve --mode development -c webpack.config.js",
"start": "webpack serve --mode development --port 8087 -c webpack.config.js",
"prerelease": "rm -rf dist/*; npm run build; zip -r dist.zip dist"
},
"dependencies": {
Expand Down
Loading

0 comments on commit 47946d1

Please sign in to comment.