wani sajad
07/13/2026, 4:02 PMsamtools view -b -q ${params.minimum_alignment_q_score}
cutandrun/conf/modules.config at master · nf-core/cutandrun
The default value of minimum_alignment_q_score is defined as 20 here:
cutandrun/nextflow_schema.json at master · nf-core/cutandrun
• nf-core/hic: MAPQ ≥10
hic/nextflow.config at master · nf-core/hic
For nf-core/rnaseq, I could not find one pipeline-wide MAPQ cutoff. I may have missed it
I understand that one universal MAPQ threshold may not be appropriate across different aligners and assays. However, ATAC-seq, ChIP-seq and CUT&RUN can all use Bowtie2, yet ATAC-seq and ChIP-seq use MAPQ ≥1 while CUT&RUN uses MAPQ ≥20.
Could someone clarify:
1. Are these differences based on assay-specific benchmarking, downstream analysis requirements or historical pipeline decisions?
2. When the same aligner, such as Bowtie2, is used, what is the rationale for MAPQ ≥1 in ATAC-seq and ChIP-seq versus MAPQ ≥20 in CUT&RUN?
3. In ATAC-seq and ChIP-seq, when keep_multi_map is false, the pipelines apply -q 1. Does MAPQ ≥1 truly restrict the BAM to uniquely mapped reads?
My understanding is that -q 1 removes MAPQ 0 alignments, but does not necessarily prove that every retained read has only one possible genomic alignment. Would it therefore be more accurate to describe this as removing MAPQ 0 or highly ambiguous alignments rather than removing all multimapping reads?
4. When a pipeline has no explicit MAPQ-filtering parameter, does that mean filtering is left to the aligner or downstream tool?
5. Do the final BAM files, bigWigs, peak calls and count matrices all use the same MAPQ-filtered read set within each pipeline?
6. Would it be useful to document this consistently for every alignment-based nf-core pipeline, including:
• the default MAPQ cutoff;where it is applied;
• whether it is configurable; and
• which downstream outputs are affected?
Please correct any thresholds or interpretations above that are inaccurate. Thank you
@Phil Ewels @Maxime GarciaMaxime Garcia
07/14/2026, 8:09 AMChris Hakkaart
07/14/2026, 11:22 PMMaxime Garcia
07/15/2026, 6:52 AMJose Espinosa-Carrasco
07/15/2026, 8:08 AMwani sajad
07/17/2026, 1:24 AM-q 1 when keep_multi_map is false. My understanding is that this removes MAPQ 0 alignments but does not strictly demonstrate that every retained alignment is uniquely mapped. Therefore, wording such as “removes MAPQ 0 or highly ambiguous alignments” may be more precise than “retains only uniquely mapped reads,” unless uniqueness is also established through another Bowtie2 or SAM flag criterion.
Thank you again. I am glad this discussion may be useful for the planned pipeline-specific technical documentation.
@Maxime Garcia @Chris Hakkaart @Jose Espinosa-CarrascoKevin Brockers
08/20/2026, 12:03 PMkeep_multi_map false, does exactly what it says. Not sure for the other aligner but one would need to look at that.
I fully agree, we should add a proper section on MAPQ usage with different aligners.... but this will become verbose 😉