33.loop-annotation/SKILL.md
This skill annotates chromatin loops, including enhancer/promoter assignments, CTCF-peak overlap. It automatically constructs enhancer and promoter sets when missing and outputs standardized loop categories.
npx skillsauth add bisnake2001/chromskills loop-annotationInstall 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 performs loop annotation for Hi-C/HiChIP/ChIA-PET interaction data. It identifies regulatory and structural loop types (E–E, E–P, P–P, CTCF-CTCF).
Main steps include:
.bedpe file as the input of annotateInteractions.plannotateInteractions.pl with feature sets.Required:
Optional:
loop_annotation/
logs/
annotateInteractions.log
annotations/
interactionAnnotation.txt
lengthDist.txt
featureEnrichment.txt
pairwiseFeatureEnrichment.txt # assign feature pairs to 0x0 0x1 and so on, represent the feature pairs like CTCF-CTCF, E-P
... # other outputs by annotateInteractions.pl
features/
enhancers.bed
promoters.bed
plots:
loop_type.pdf
lengthDist.pdf
If enhancers.bed or promoters.bed missing, go on to Step 2, otherwise go on to step 4 directly.
bedtools intersect -a ATAC_peaks.bed -b H3K27ac_peaks.bed > enhancers_raw.bed
sort -k1,1 -k2,2n enhancers_raw.bed | bedtools merge -i - > enhancers.bed
Call:
with:
genome: HOMER genome identifier, provided by useroutput_promoters_bed: Output path for promoters.bedwith:
input_bedpe: Input loops.bedpe fileindex_count_column: Column index for interaction count, provided by useroutput_bedpe: Output standardized loops fileCall:
with:
standardized_loops: Path to standardized loops file for annotateInteractions.plgenome: HOMER genome identifier, provided by userfeature_beds: List of feature BED files for -p (CTCF, enhancers, promoters, etc.)annotations_dir: Base output directory for loop annotationlogs_dir: Output directory for logsCall:
with:
annotations_dir: Directory containing HOMER interactionAnnotation.txt and lengthDist.txtplots_dir: Output directory for plotsfeature_map: Mapping of feature index to feature name, you can infer the dict from pairwiseFeatureEnrichment.txt file.
(e.g. {'0': 'CTCF','1': 'E','2': 'P'})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.