18_toolBased.hic-tad-calling/SKILL.md
This skill should be used when users need to identify topologically associating domains (TADs) from Hi-C data in .mcools (or .cool) files or when users want to visualize the TAD in target genome loci. It provides workflows for TAD calling and visualization.
npx skillsauth add bisnake2001/chromskills hic-tad-callingInstall 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 enables comprehensive identification and analysis of topologically associating domains (TADs) from Hi-C data stored in .mcool (or .cool) files. It integrates HiCExplorer for robust TAD calling and visualization capabilities.
Main steps include:
Use this skill when:
"chr22:1000000-2000000").${sample}_TAD_calling/
TADs/
${sample}_TAD_boundaries.bed # Called TADs in BED format
${sample}_TAD_boundaries.gff
${sample}_TAD_domains.bed
... # other files output by the hicFindTADs
plots/
${sample}_TADs_${genome_loci}.pdf # TADs visualization (contact map)
temp/
${sample}_track.ini # Configuration file for visualization
When using this skill, you should restrict yourself to the following MCP tools from server cooler-tools, cooltools-tools, project-init-tools, genome-locate-tools:
mcp__project-init-tools__project_initmcp__genome-locate-tools__genome_locate_fastamcp__HiCExplorer-tools__hic_to_mcoolmcp__HiCExplorer-tools__check_mcool_filemcp__HiCExplorer-tools__run_hicFindTADsmcp__HiCExplorer-tools__generate_track_inimcp__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:
sample): used as prefix and for the output directory ${sample}_TAD_calling.genome): e.g. hg38, mm10, danRer11.
mcool_uri): e.g. .mcool file path or .hic file path.
path/to/sample.mcool::/resolutions/50000 (.mcool file with resolution specified).cool file path.hic file pathresolution): default 50000 (50 kb).
50000 as default.${mcool_uri}Call:
mcp__project-init-tools__project_initwith:
sample: the user-provided sample nametask: TAD_callingThe tool will:
${sample}_TAD_calling directory.${sample}_TAD_calling directory, which will be used as ${proj_dir}..hic file, convert it to .mcool file first using mcp__HiCExplorer-tools__hic_to_mcool tool:Call:
mcp__HiCExplorer-tools__hic_to_mcoolwith:
input_hic: the user-provided path (e.g. input.hic)sample: the user-provided sample nameproj_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.resolutions: the user-provided resolutions (e.g. [50000])The tool will:
.hic file to .mcool file..mcool file.If the conversion is successful, update ${mcool_uri} to the path of the .mcool file.
.mcool file to list available resolutions and confirm the analysis resolution with the user.Call:
mcp__cooler-tools__list_mcool_resolutionswith:
mcool_path: the user-provided path (e.g. input.mcool) or the path of the .mcool file returned by mcp__HiCExplorer-tools__hic_to_mcoolThe tool will:
If the ${resolution} is not found, ask the user to specify the resolution again.
Else, use ${resolution}.
Use mcp__HiCExplorer-tools__run_hicFindTADs for comprehensive TAD identification. 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_hicFindTADs
with:sample: ${sample}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.<track.ini> file first for visualizationCall:
mcp__HiCExplorer-tools__generate_track_iniwith:
sample: ${sample}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 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.0The tool will:
<track.ini> file under ${proj_dir}/temp/ directory.<track.ini> file."chr22:1000000-2000000".Call:
mcp__HiCExplorer-tools__plot_tads_regionwith:
sample: ${sample}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.