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...
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.