Skip to content

Commit

Permalink
Fixed wrong ID
Browse files Browse the repository at this point in the history
  • Loading branch information
davetang committed Mar 25, 2024
1 parent 963fb58 commit 2c80063
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions learning_bam_file.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -544,15 +544,21 @@ Returning to our coverage definition at the start of this section:
The [mosdepth](https://github.com/brentp/mosdepth) tool can also calculate depth (and much faster than `samtools depth`) per base or within a given window. The output is given in a BED file, where the fourth column indicates the coverage.

```{bash engine.opts='-l'}
mosdepth ERR188275 eg/ERR188273_chrX.bam
mosdepth ERR188273 eg/ERR188273_chrX.bam
gunzip -c ERR188273.per-base.bed.gz | head
```

`mosdepth` coverage.

```{bash engine.opts='-l'}
cat ERR188273.mosdepth.summary.txt
```

Coverage in using a 500 bp window.

```{bash engine.opts='-l'}
mosdepth -n --fast-mode --by 500 ERR188275_500 eg/ERR188273_chrX.bam
gunzip -c ERR188275_500.regions.bed.gz | head
mosdepth -n --fast-mode --by 500 ERR188273_500 eg/ERR188273_chrX.bam
gunzip -c ERR188273_500.regions.bed.gz | head
```

## Stargazers over time
Expand Down

0 comments on commit 2c80063

Please sign in to comment.