modkit icon indicating copy to clipboard operation
modkit copied to clipboard

Provide New Feature For Pileup Command:Filter by base_qual

Open WeiHea opened this issue 7 months ago • 3 comments

In our daily usage, we may filter out low-confidence data using base_qual and then examine the overall 5mc modification levels through pileup. Therefore, we hope to add an option in the pileup command to provide the functionality of filtering using base_qual.

WeiHea avatar May 17 '25 03:05 WeiHea

Hello @WeiHea,

In Nanopore data often times the base_qual is correlated with modification probability. So filtering on base_qual could bias your modification estimates. Do you find this to be the case in your analysis? You could (and probably should) filter the modBAM based on quality (qs:f: tag) or other read-level quality metrics.

ArtRand avatar May 19 '25 14:05 ArtRand

Hello @WeiHea,

In Nanopore data often times the base_qual is correlated with modification probability. So filtering on base_qual could bias your modification estimates. Do you find this to be the case in your analysis? You could (and probably should) filter the modBAM based on quality (qs:f: tag) or other read-level quality metrics.

Are you suggesting that the electrical signals from modifications might lead to lower base_qual? Actually, in our data, after filtering out bases with base_qual ≤ 30, the 5mC modification results became more consistent with our expectations.

WeiHea avatar May 19 '25 17:05 WeiHea

Hello @WeiHea,

In Nanopore data often times the base_qual is correlated with modification probability. So filtering on base_qual could bias your modification estimates. Do you find this to be the case in your analysis? You could (and probably should) filter the modBAM based on quality (qs:f: tag) or other read-level quality metrics.

Additionally, if data with lower base_qual could still represent high-quality modification calls, what alternative approaches would you recommend besides using adaptive thresholding to filter out low-quality data?

WeiHea avatar May 19 '25 17:05 WeiHea