20_toolBased.differential-tad-analysis/SKILL.md
This skill performs differential topologically associating domain (TAD) analysis using HiCExplorer's hicDifferentialTAD tool. It compares Hi-C contact matrices between two conditions based on existing TAD definitions to identify significantly altered chromatin domains.
npx skillsauth add bisnake2001/chromskills differential-tad-analysisInstall 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.
This skill identifies differentially interacting TADs between two experimental conditions using HiCExplorer.
It assumes that TADs have already been called for the target condition.
Steps:
Use this skill when:
${target}_${control}_differential_tad_analysis/
normalize/
${target}_norm.cool
${control}_norm.cool
TADs/
${target}_TAD_boundaries.bed # Called TADs in BED format
${target}_TAD_boundaries.gff
${target}_TAD_domains.bed
${target}_TAD_score.bedgraph
${target}_TAD_tad_score.bm
diff_TADs/
${target}_${control}_accepted.diff_tad
${target}_${control}_rejected.diff_tad
plots/
${target}_${control}_contactmap_chrN.png
When using this skill, you should restrict yourself to the following MCP tools from server project-init-tools, genome-locate-tools, HiCExplorer-tools:
mcp__project-init-tools__project_initmcp__HiCExplorer-tools__hic_to_mcoolmcp__HiCExplorer-tools__run_hicFindTADsmcp__HiCExplorer-tools__hic_normalizemcp__HiCExplorer-tools__hic_differential_tadmcp__HiCExplorer-tools__generate_track_inimcp__HiCExplorer-tools__plot_hic_contact_mapsmcp__HiCExplorer-tools__plot_tads_regionDo NOT fall back to:
hicFindTADs, hicPlotTADs, etc.)cooler, bioframe, matplotlib manually in the reply).Before calling any tool, ask the user:
target): used as prefix and for the output directory ${target}_${control}_differential_tad_analysis.control): used as prefix and for the output directory ${target}_${control}_differential_tad_analysis.genome): e.g. hg38, mm10, danRer11.
mcool_uri_target, mcool_uri_control): .
path/to/target.mcool::/resolutions/50000, path/to/control.mcool::/resolutions/50000 (.mcool files with resolution specified).cool file path.hic file pathresolution): default 50000 (50 kb).
50000 as default.${mcool_uri_target} and ${mcool_uri_control}Call:
mcp__project-init-tools__project_initwith:
sample: ${target}_${control}task: differential_tad_analysisThe tool will:
${target}_${control}_differential_tad_analysis directory.${target}_${control}_differential_tad_analysis directory, which will be used as ${proj_dir}..hic files for the target and control conditions, convert it to .mcool file first using mcp__HiCExplorer-tools__hic_to_mcool tool for the target and control conditions separately:Call:
mcp__HiCExplorer-tools__hic_to_mcoolwith:
input_hic: the user-provided path (e.g. input.hic)sample: ${target}proj_dir: directory to save the view file. In this skill, it is the full path of the ${target}_${control}_differential_tad_analysis directory returned by mcp__project-init-tools__project_init.resolutions: the user-provided resolutions (e.g. [50000])The tool will:
.hic file to .mcool file for the target condition..mcool file for the target condition.Call:
mcp__HiCExplorer-tools__hic_to_mcoolwith:
input_hic: the user-provided path (e.g. input.hic)sample: ${control}proj_dir: directory to save the view file. In this skill, it is the full path of the ${target}_${control}_differential_tad_analysis directory returned by mcp__project-init-tools__project_init.resolutions: the user-provided resolutions (e.g. [50000])The tool will:
.hic file to .mcool file for the control condition..mcool file for the control condition.If the conversion is successful, update ${mcool_uri_target} and ${mcool_uri_control} to the path of the .mcool files.
.mcool files for the target and control conditions respectively to list available resolutions and confirm the analysis resolution with the user.Call:
mcp__cooler-tools__list_mcool_resolutionswith:
mcool_path: the path of the .mcool file for the target condition. If the user provides the path of the .hic file, these are the .mcool files returned by mcp__HiCExplorer-tools__hic_to_mcool tool.The tool will:
Call:
mcp__cooler-tools__list_mcool_resolutionswith:
mcool_path: the path of the .mcool file for the control condition. If the user provides the path of the .hic file, these are the .mcool files returned by mcp__HiCExplorer-tools__hic_to_mcool tool.The tool will:
If the ${resolution} for the target condition or the control condition is not found, ask the user to specify the resolution again.
Else, use ${resolution} for the target condition and ${resolution} for the control condition.
To ensure both matrices have comparable sequencing depth and coverage, perform normalization before analysis.
Call:
mcp__HiCExplorer-tools__hic_normalizewith:
sample_target: ${target}sample_control: ${control}proj_dir: Full path to project directory. In this skill, it is the full path of the ${target}_${control}_differential_tad_analysis directory returned by mcp__project-init-tools__project_init.mcool_uri_target: ${mcool_uri_target} with the resolution ${resolution} specified.mcool_uri_control: ${mcool_uri_control} with the resolution ${resolution} specified.resolution: ${resolution}, must be the same as the resolution used in previous steps and must be an integer.method: Normalization method: smallest, largest, or sum.The tool will:
${cool_target_norm} and ${cool_control_norm}.Use mcp__HiCExplorer-tools__run_hicFindTADs for comprehensive TAD identification for the target condition. Customize parameters to suit the resolution and depth of your Hi-C data:
Before calling the tool, ask the user for the following parameters:
${min_depth}: Minimum window size (e.g. 3x resolution, default 150000, must be at least 3 times larger than the resolution)${max_depth}: Maximum window size (e.g. 6-10x resolution, default 300000, must be at least 5 times larger than the resolution)${step}: Step size for sliding window (default 50000, 25000 is the best but memory-consuming)${multiple_testing}: Multiple testing correction method (e.g. 'fdr')${threshold_comparisons}: FDR threshold for significant TADs (default 0.05)${delta}: Delta parameter for TAD boundary detection (default 0.01)${chromosomes}: Chromosomes to call TADs (default chr22). It is suggested to call TADs on a certain chromosome because it is memory-consuming to call TADs on all chromosomes and this process would likely be killed by the system.Call:
mcp__HiCExplorer-tools__run_hicFindTADswith:
sample: ${target}proj_dir: directory to save the view file. In this skill, it is the full path of the ${sample}_TAD_calling directory returned by mcp__project-init-tools__project_init.mcool_uri: cooler URI with resolution specified, e.g. input.mcool::/resolutions/${resolution}resolution: ${resolution} must be the same as the resolution used for ${mcool_uri} and must be an integermin_depth: ${min_depth}, must be at least 3 times larger than the resolution.max_depth: ${max_depth}, must be at least 5 times larger than the resolution.step: ${step}multiple_testing: ${multiple_testing}threshold_comparisons: ${threshold_comparisons}delta: ${delta}chromosomes: chromosomes to call TADs, e.g. chr22, space-separated list.The tool will:
mcp__HiCExplorer-tools__run_hicFindTADs to identify TADs.${proj_dir}/TADs/ directory.Detect TADs with statistically different intra- and inter-TAD interactions between the normalized matrices.
Call:
mcp__HiCExplorer-tools__hic_differential_tadwith:
target: ${target}control: ${control}cool_target_norm: ${cool_target_norm} returned by mcp__HiCExplorer-tools__hic_normalize tool.cool_control_norm: ${cool_control_norm} returned by mcp__HiCExplorer-tools__hic_normalize tool.proj_dir: directory to save the view file. In this skill, it is the full path of the ${target}_${control}_differential_tad_analysis directory returned by mcp__project-init-tools__project_init.target_tads: ${target}_TADs_domains.bed under ${proj_dir}/TADs/ directory returned by mcp__HiCExplorer-tools__run_hicFindTADs tool.p_value: Significance cutoff for differential TADs (default 0.05)region_mode: Region types used for testing: 'intra-TAD', 'left-inter-TAD', 'right-inter-TAD', or 'all' (default)reject_rule: Multiple region reject rule: 'one' (default) or 'all' for stricter criteriathreads: Number of threads for chromosome-level parallelization (default 4)The tool will:
${proj_dir}/diff_TADs/ directory.Before calling the tool, ask the user for the target region, like "chr22:1000000-2000000".
Call :
mcp__HiCExplorer-tools__plot_hic_contact_mapswith:
sample: ${target}proj_dir: directory to save the view file. In this skill, it is the full path of the ${target}_${control}_differential_tad_analysis directory returned by mcp__project-init-tools__project_init.cool_norm: ${cool_target_norm} returned by mcp__HiCExplorer-tools__hic_normalize tool.region: region to plot, e.g. chr1:1000000-5000000dpi: DPI for the plot (default 300)log1p: Apply log1p transform to contact values (default True)per_chr: Use --perChr option of hicPlotMatrix (default True)The tool will:
${proj_dir}/plots/ directory.Call:
mcp__HiCExplorer-tools__plot_hic_contact_mapswith:
sample: ${control}proj_dir: directory to save the view file. In this skill, it is the full path of the ${target}_${control}_differential_tad_analysis directory returned by mcp__project-init-tools__project_init.cool_norm: ${cool_control_norm} returned by mcp__HiCExplorer-tools__hic_normalize tool.region: region to plot, e.g. chr1:1000000-5000000dpi: DPI for the plot (default 300)log1p: Apply log1p transform to contact values (default True)per_chr: Use --perChr option of hicPlotMatrix (default True)The tool will:
${proj_dir}/plots/ directory.<track.ini> file first for visualizationCall:
mcp__HiCExplorer-tools__generate_track_iniwith:
sample: ${target}_${control}proj_dir: directory to save the view file. In this skill, it is the full path of the ${target}_${control}_differential_tad_analysis directory returned by mcp__project-init-tools__project_init.mcool_uri: cooler URI with resolution specified, e.g. input.mcool::/resolutions/${resolution}resolution: ${resolution} must be the same as the resolution used for ${mcool_uri} and must be an integerdepth: depth for the Hi-C matrix view, e.g. 1500000min_value: minimum value for the Hi-C matrix view, e.g. 0.0max_value: maximum value for the Hi-C matrix view, e.g. 80.0if_diff_TADs: Truetarget: ${target}, target sample name.control: ${control}, control sample name.The tool will:
<track.ini> file under ${proj_dir}/temp/ directory.<track.ini> file."chr22:1000000-2000000".Call:
mcp__HiCExplorer-tools__plot_tads_regionwith:
sample: ${target}_${control}proj_dir: directory to save the view file. In this skill, it is the full path of the ${sample}_TAD_calling directory returned by mcp__project-init-tools__project_init.region: user-provided target region, like "chr22:1000000-2000000"dpi: dpi for the contact map, default is 300The tool will:
${proj_dir}/plots/ directory.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.