This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Read depths on whole genome (WGS)

Hello to the whole community

I have aligned a WGS data and I want to read the coverage of a region of interest (chr9:27,573,456-27,573,614). I know that samtools depth can read the coverage base by base, but I don't know how to delimit a portion of my bam. Can anyone help me please?

Thanks to all

samtools wgs read-depth

1 answer

http://www.htslib.org/doc/samtools-depth.html

-r CHR:FROM-TO Only report depth in specified region.

so

samtools depth -r "chr1:234-567" in.bam

Log in to answer this question.