1.alignment-level-QC/SKILL.md
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.
npx skillsauth add bisnake2001/chromskills alignment-level-QCInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.txt
Use references/qc_metrics.md for:
development
Align ChIP-seq or ATAC-seq FASTQ files to a reference genome using Bowtie2, with strict input validation, library layout detection, output organization and logging. Use it when raw sequencing reads must be converted into sorted/indexed BAM files before downstream QC, peak calling, or footprinting.
development
Align bisulfite sequencing DNA methylation reads using Bismark only, with explicit validation of reference preparation, library layout detection, output organization, logging, and alignment QC. Use it for WGBS, RRBS, or other bisulfite-converted DNA methylation sequencing data when raw FASTQ files must be aligned before methylation extraction and downstream analysis.
data-ai
Perform peak calling for ChIP-seq or ATAC-seq data using MACS3, with intelligent parameter detection from user feedback. Use it when you want to call peaks for ChIP-seq data or ATAC-seq data.
devops
The TF-differential-binding pipeline performs differential transcription factor (TF) binding analysis from ChIP-seq datasets (TF peaks) using the DiffBind package in R. It identifies genomic regions where TF binding intensity significantly differs between experimental conditions (e.g., treatment vs. control, mutant vs. wild-type). Use the TF-differential-binding pipeline when you need to analyze the different function of the same TF across two or more biological conditions, cell types, or treatments using ChIP-seq data or TF binding peaks. This pipeline is ideal for studying regulatory mechanisms that underlie transcriptional differences or epigenetic responses to perturbations.