This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Recommended thresholds for filtering modkit pileup bedMethyl output (Nmod, fraction_modified, Nfail)

Hi all,

I'm working with ONT methylation data and using modkit pileup to generate a bedMethyl output for CpG methylation (5mC) using the following command:

modkit pileup input.bam output.bed.gz \
  --modified-bases 5mC \
  --cpg \
  --reference genome.fasta

I want to filter confidently methylated positions but I’m unsure what thresholds are best to use.

Can anyone clarify:

  1. Are there recommended default thresholds (especially for 5mC) for confident sites?
  2. Is there any biological or technical justification (e.g. coverage, confidence) for choosing values like 5 or 70%?
  3. How do thresholds like --filter-threshold or --filter-percentile interact with Nfail?

Thanks everyone in advance!!

methylation modkit bedmethyl

Thank you very much! I understand modkit uses certain thresholds, but shouldd we accept everything that passes these thresholds? Does it matter on how many reads this modification was found ? And if so, how?

ONT has likely coded in defaults that should work for most use cases. If you are working with an edge case you could email the support and ask.

0 answers

No answers yet.

Log in to answer this question.