2.BAM-filtration/SKILL.md
--- name: BAM-filtration description: Performs data cleaning and removal operations. This skill takes a raw BAM and creates a new, "clean" BAM file by actively removing artifacts: mitochondrial reads, blacklisted regions, PCR duplicates, and unmapped reads. Use this skill to "clean," "filter," or "remove bad reads" from a dataset. This is a prerequisite step before peak calling. Do NOT use this skill if you only want to view statistics without modifying the file. --- # BAM Filtration for ChIP-s
npx skillsauth add bisnake2001/chromskills 2.BAM-filtrationInstall 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.
Main steps include:
${proj_dir} in Step 0.${sample}.bam # BAMs that are already coordinate-sorted and contain read group (RG) information
all_bam_filtration/
filtered_bam/
${sample}.filtered.bam
${sample}.filtered.bam.bai
temp/
... # intermediate files
Call:
mcp__project-init-tools__project_initwith:
sample: alltask: bam_filtrationThe tool will:
${sample}_bam_filtration directory.${sample}_bam_filtration directory, which will be used as ${proj_dir}.Call:
with:
bam_file: BAMs that are already coordinate-sorted and contain read group (RG) informationoutput_bam: ${proj_dir}/filtered_bam/${sample}.filtered.bamtemp_dir: ${proj_dir}/temp/blacklist_bed: Path of the blacklist filedevelopment
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.