Claude-skill-registry replicates-incorporation
This skill manages experimental reproducibility, pooling, and consensus strategies. This skill operates in two distinct modes based on the input state. (1) Pre-Peak Calling (BAM Mode): It merges all BAMs, generate the merge BAM file to prepare for track generation and (if provided with >3 biological replicates) splits them into 2 balanced "pseudo-replicates" to prepare for peak calling. (2) Post-Peak Calling (Peak Mode): If provided with peak files (only support two replicates, derived from either 2 true replicates or 2 pseudo-replicates), it performs IDR (Irreproducible Discovery Rate) analysis, filters non-reproducible peaks, and generates a final "conservative" or "optimal" consensus peak set. Trigger this skill when you need to handle more than two replicates (creating pseudo-reps) OR when you need to merge peak lists.
git clone https://github.com/majiayu000/claude-skill-registry
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/7-replicates-incorporation" ~/.claude/skills/majiayu000-claude-skill-registry-replicates-incorporation && rm -rf "$T"
skills/data/7-replicates-incorporation/SKILL.mdReplicates Incorporation Skill
Overview
This skill provides two modes for replicates incorporation:
- Refer to the Inputs & Outputs section to check inputs and build the output architecture. All the output file should located in
in Step 0.${proj_dir} - Always use filtered BAM file (
) if available.*.filtered.bam - Always prompt user for whether generate psedo-replicates if more then 2 replicates.
- Pre-Peak Calling (BAM Mode): If provided with >2 biological replicates, it merges all BAMs, generate the merge BAM file to prepare for track generation and splits them into 2 balanced "pseudo-replicates" to prepare for peak calling only if user required.
- Post-Peak Calling (Peak Mode): If provided with peak files (only support two replicates, derived from either 2 true replicates or 2 pseudo-replicates), it performs IDR (Irreproducible Discovery Rate) analysis, filters non-reproducible peaks, and generates a final "conservative" or "optimal" consensus peak set
Decision Tree
Step 0: Initialize Project
Call:
mcp__project-init-tools__project_init
with:
: allsample
: rep_mergetask
The tool will:
- Create
directory.all_rep_merge - Return the full path of the
directory, which will be used asall_rep_merge${proj_dir}
Pre-Peak Calling (BAM Mode)
Call:
with:mcp__bw_tools__pool_bams
:bam_files
(Add as many as needed)[${rep1_bam}, ${rep2_bam}, ${rep3_bam}]
:output_bam${proj_dir}/temp/${sample}.pooled.bam
Call: (call this only when more than two replicates are provided and user prompt for generating pseudo replicates)
with: bam_file:mcp__bw_tools__split_pseudo_replicates
output_rep1:${proj_dir}/temp/${sample}.pooled.bam
output_rep2:${proj_dir}/temp/${sample}.pseudo1.bam${proj_dir}/temp/${sample}.pseudo2.bam
Post-Peak Calling (Peak Mode)
A. Narrow Peaks / ATAC (IDR) Use this to combine reproducible peaks. You should ideally run IDR on:
- True Replicates
- Pseudo-Replicates
Call:
with:mcp__bw_tools__filter_idr_peaks
: Path to Replicate 1 narrowPeak file.peak_file_a
: Path to Replicate 2 narrowPeak file.peak_file_b
:output_optimal${proj_dir}/peaks/${sample}.idr.narrowPeaks
:output_raw_idr${proj_dir}/temp/${sample}_idr_results.tsv
: narrowPeakinput_file_type
: q.valuerank_measure
B. Broad Peaks (Consensus) Call:
with:mcp__bw_tools__merge_consensus_peaks
: Path to Replicate 1 broadPeak file.peak_file_a
: Path to Replicate 2 broadPeak file.peak_file_b
:output_peak${proj_dir}/peaks/${sample}.consensus.broadPeaks
: 0.5overlap_fraction
Best Practices
- Use pooled tracks for visualization and differential analysis.
- Keep individual replicate tracks for QC and reproducibility evaluation.
- Use IDR ≤ 0.05 for reproducible narrow ChIP-seq peaks and ATAC-seq.
- **Use overlap ≥50% ** for broad histone mark peaks.