samtools view -b accepted_hits.bam | bedtools genomecov -ibam stdin -g hg19.fa > g_cvrg.txt
and the g_cvrg.txt output file looks like this:
chr1 0 184679918 249250621 0.740941
chr1 1 10205478 249250621 0.0409446
chr1 2 6531063 249250621 0.0262028
chr1 3 4667464 249250621 0.018726
chr1 4 3622280 249250621 0.0145327
chr1 5 2723840 249250621 0.0109281
chr1 6 2066780 249250621 0.00829198
chr1 7 1683803 249250621 0.00675546
chr1 8 2096809 249250621 0.00841245
chr1 9 1581081 249250621 0.00634334
however, the documentation on here (http://bedtools.readthedocs.org/en/latest/content/tools/genomecov.html) doesn't show any similar output so I am trying to understand what the cols "should be":
1- chr
2- index on chr
3- length of fragment from position in col 2??
4- size chr
5- fraction of bases in 3 over size chr (col3/co4)
so...looking that I have 184679918 from position 0 (0 --> 184679918) with 0.74% coverage and then I have one nt after (second row) a 10205478nt long fragment (1-->10205479) with 0.04% coverage..does it mean that the fragments should look like:
nt index 0 1 2 .......
chr ------------------------------------------------------------------------------------------------------------------------ .........
first row data --------------------------------------------------------------------------------
2nd row data --------------------
if this is true, please let me know and I'll add this to the github doc about the output.
thanks
--
You received this message because you are subscribed to the Google Groups "bedtools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bedtools-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
chr1 0 184679918 249250621 0.740941
[..]
chr1 36333 1 249250621 4.01203e-09