Calculates technical mapping statistics for any aligned BAM file (ChIP or ATAC). It assesses the performance of the aligner itself by generating metrics on read depth, mapping quality, error rates, and read group data using samtools and Picard.Use this skill to check "how well the reads mapped" or to validate BAM formatting/sorting before further processing. Do NOT use this skill for biological signal validation (like checking for peaks or open chromatin) or for filtering/removing reads.
Overall
score
18%
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillValidation for skill structure
Perform comprehensive preliminary alignment-level quality control for ChIP-seq and ATAC-seq BAM files using samtools, Picard, and MultiQC.
Main steps include:
${proj_dir} in Step 0.<sample>.bam
alignment_qc/
${sample}.bam # Original input
${sample}.sorted.bam # (Optional) Created if sorting was needed
${sample}.RG.bam # (Optional) Created if RG was needed
${sample}.RG.bam.bai # Index file
qc_results/
${sample}.flagstat.txt
${sample}.stats.txt
${sample}.insertsize_metrics.txt
${sample}.dup_metrics.txt
alignment_qc_report.html # Visual MultiQC report
qc_summary.txt # Pass/Warn/Fail table
temp/
${sample}.markdup.bam # Intermediate file (safe to delete later)
...Call:
mcp__project-init-tools__project_initwith:
sample: alltask: alignment_qcThe tool will:
${sample}_alignment_qc directory.${sample}_alignment_qc directory, which will be used as ${proj_dir}.Call:
with:
bam_files: List of BAM files to process.temp_dir: ${proj_dir}/tempCall:
with:
bam_files: List of BAM files to process.qc_dir: ${proj_dir}/qc_resultstemp_dir: ${proj_dir}/tempStep 3: Generate Summary Report
Call:
with:
qc_dir: ${proj_dir}/qc_resultsAll metrics are derived from samtools/Picard and summarized by MultiQC.
| Category | Criteria | Interpretation |
|---|---|---|
| Pass | All metrics within recommended thresholds | Suitable for downstream analysis |
| Warn | One or more borderline metrics | Likely acceptable; review recommended |
| Fail | Critical metrics outside acceptable ranges | Re-sequencing or reprocessing suggested |
After MultiQC completes, generate a sample-wise summary (PASS/WARN/FAIL) per thresholds in references/qc_metrics.md and save it as:
qc_results/qc_summary.txtUse references/qc_metrics.md for:
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.