mosdepth exclude soft clipped bases to calculate coverage?
1
0
Entering edit mode
18 months ago
kani ▴ 10

Does the mosdepth exclude the soft clipped bases present in the aligned reads to calculate the coverage?

Default it exclude the mark duplicate and secondary alignment reads (-F 1796) and avoid double counting overlapping read pairs.

mosdepth --no-per-base --by 1000 --mapq 20 --threads 4 ${biosample_id} ${bam}
samtools depth wgs mosdepth • 778 views
ADD COMMENT
1
Entering edit mode
18 months ago

Does the mosdepth exclude the soft clipped bases

yes it uses the SAM start position (!= unclipped start) sequtils.to_seq(gen_start_ends(rec.cigar, rec.start.int))

https://github.com/brentp/mosdepth/blob/master/mosdepth.nim#L299

ADD COMMENT
0
Entering edit mode

Thank you so much

ADD REPLY

Login before adding your answer.

Traffic: 1240 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6