Entering edit mode
12.6 years ago
Juliofdiaz
▴
140
IS there a way that samtools depth include gaps? Right now every time I run samtools depth the data just skips the base positions without coverage. Thanks
Good God man you are an awk wizard ~!
Any quick way to also include the beginning/ends of the reference sequence? For example in mine, bases 1-6 have zero coverage and the output starts when it is at base 7 of the chromosome. When it gets to a depth of zero in the middle of the chromosome, it reports it thanks to the awk command.
use bedtools to get that information.
I got something bioperl-ish that seems to work
where $ref is a reference genome in fasta format defined in the shell environment, $sorted is a sorted bam