You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### a tool to generate BED coverage tracks from BAM files
12
12
13
13
Reads one (or more) [alignment](https://en.wikipedia.org/wiki/Sequence_alignment) files
14
14
(sorted [BAM](https://en.wikipedia.org/wiki/SAM_(file_format))) and prints a [BED](https://en.wikipedia.org/wiki/BED_(file_format)) with the [coverage](https://en.wikipedia.org/wiki/Coverage_(genetics)). It will join consecutive bases with the same coverage, and can be used to only print a BED file with the regions having a specific coverage range.
15
15
16
-
:book:[Read more in the wiki](https://github.com/telatin/covtobed/wiki)
16
+
:book:**[Read more in the wiki](https://github.com/telatin/covtobed/wiki)** - this is the **main** documentation source
See the full example output from different tools [:open_file_folder: here](https://github.com/telatin/covtobed/blob/master/test/output/README.md)
73
74
74
75
## Install
75
76
76
-
* To install with Miniconda:
77
+
* To install with Miniconda:
77
78
78
-
```
79
+
```bash
79
80
conda install -c bioconda covtobed
80
81
```
81
82
82
-
* Both **covtobed**, and the legacy program [**coverage**](https://github.com/telatin/covtobed/wiki/Using-coverage) are available as a single Docker container available from Docker Hub [](https://hub.docker.com/r/andreatelatin/covtobed)
83
-
:
84
-
```
83
+
* Both **covtobed**, and the legacy program [**coverage**](https://github.com/telatin/covtobed/wiki/Using-coverage) are available as a single Docker container available from Docker Hub [](https://hub.docker.com/r/andreatelatin/covtobed):
84
+
85
+
```bash
85
86
sudo docker pull andreatelatin/covtobed
86
87
sudo docker run --rm -ti andreatelatin/covtobed coverage -h
87
88
```
88
89
89
90
* Download Singularity image by `singularity pull docker://andreatelatin/covtobed`, then:
90
-
```
91
+
92
+
```bash
91
93
singularity exec covtobed.simg coverage -h
92
94
```
93
95
94
-
95
96
## Performance
96
97
97
98
*covtobed* is generally faster than *bedtools*. More details are in the [benchmark](benchmark) page.
@@ -107,17 +108,38 @@ c++ -std=c++11 *.cpp -I/path/to/bamtools/ -L${HOME}/path/to/lib/ -lbamtools -o c
107
108
108
109
## Issues, Limitations and how to contribute
109
110
110
-
- This program will read the coverage from *sorted BAM* files. The *CRAM* format is not supported at the moment.
111
-
- If you find a problem feel free to [raise an issue](https://github.com/telatin/covtobed/issues), we will try to address it as soon as possible
112
-
-[Contributions](CONTRIBUTING.md) are welcome via PR.
111
+
* This program will read the coverage from *sorted BAM* files. The *CRAM* format is not supported at the moment.
112
+
* If you find a problem feel free to [raise an issue](https://github.com/telatin/covtobed/issues), we will try to address it as soon as possible
113
+
*[Contributions](CONTRIBUTING.md) are welcome via PR.
113
114
114
115
## Acknowledgements
115
116
116
117
This tools uses [libbamtools](https://github.com/pezmaster31/bamtools) by Derek Barnett, Erik Garrison, Gabor Marth and Michael Stromberg, and [cpp-optparse](https://github.com/weisslj/cpp-optparse) by Johannes Weißl. Both tools and this program are released with MIT license.
117
118
118
-
119
119
## Authors
120
120
121
121
Giovanni Birolo ([@gbirolo](https://github.com/gbirolo)), University of Turin, and Andrea Telatin ([@telatin](https://github.com/telatin)), Quadram Institute Bioscience.
122
122
123
123
This program was finalized with a Flexible Talent Mobility Award funded by BBSRC through the [Quadram Institute](https://quadram.ac.uk).
124
+
125
+
## Citation
126
+
127
+
If you use this tool, why not citing the paper?
128
+
129
+
> Birolo et al., (2020). covtobed: a simple and fast tool to extract coverage tracks from BAM files. Journal of Open Source Software, 5(47), 2119, https://doi.org/10.21105/joss.02119
130
+
131
+
BibTeX citation:
132
+
```latex
133
+
@article{Birolo2020,
134
+
doi = {10.21105/joss.02119},
135
+
url = {https://doi.org/10.21105/joss.02119},
136
+
year = {2020},
137
+
publisher = {The Open Journal},
138
+
volume = {5},
139
+
number = {47},
140
+
pages = {2119},
141
+
author = {Giovanni Birolo and Andrea Telatin},
142
+
title = {covtobed: a simple and fast tool to extract coverage tracks from BAM files},
* OS X: [https://github.com/telatin/covtobed/releases/download/v0.3/covtobed_osx](https://github.com/telatin/covtobed/releases/download/v0.3/covtobed_osx)
5
5
6
6
The Linux binary has been tested with Ubuntu 14.04, Ubuntu 18.04, Fedora 26 and Fedora 30.
0 commit comments