SKILL.md
Integrative Methylation–Expression Correlation Analysis
Overview
This skill integrates differential methylation and differential expression datasets to reveal coordinated epigenetic regulation patterns.
- Refer to Inputs & Outputs to verify necessary files.
- Always prompt user for genome assembly used.
- Prepare the DMR regions into 6-column standard format BED file received by HOMER.
- Annotate the differential methylation regions to the gene promoter.
- Preprocess differential methylation and expression tables into a standard format.
- Integrate methylation and expression data by promoter proximity.
- Calculate correlation between methylation change and expression fold change.
- Classify patterns such as hypermethylation–downregulation or hypomethylation–upregulation.
Inputs & Outputs
Inputs
dmr_results.txt # DMR results output by the metilene
dge_result.csv # DEG results output by DESeq2
Outputs
corr_DMR_DEG/
stats/
integrated_results.tsv
pattern_counts.tsv
summary_stats.tsv
correlation_plot.pdf
temp/
homer_dmr.bed
... # Other temp files
Decision Tree
Step 1: Prepare the DMR regions into 6-column standard format BED file received by HOMER
awk -F'\t' 'BEGIN {OFS="\t"} {print $1, $2, $3, "peak_"NR, "*", "+"}' dmr_results.txt > homer_dmr.bed
Step 2: Annotate the differential methylation regions to the gene promoter.
Call:
- mcphomer-toolshomersimpleannotate_peaks
with:
peaks_path: 6-column standard format BED file from Step 1.genome: Provide by user.output_path: Output path of the annotated file
Step 3: Preprocess differential methylation and expression tables into a standard format
Call:
- mcpmethyl-toolspreprocessdifferentialtable
(1) with:
inputpath: dmrresults.txtoutput_pathdata_type: methylsource: metilene
(2) with:
inputpath: dgeresult.csvoutput_pathdata_type: exprsource: deseq2
Step 4: Integrate methylation and expression data by promoter proximity
Call:
- mcpmethyl-toolsintegratemethylationexpression
with:
methylpath: Path to standardized methylation TSV with columns: chr,start,end,pvalue,methdiff (from Step 3) methylannotpath: Path to methylation annotation TSV from HOMER (from Step 2). exprpath: Path to standardized expression TSV with columns: gene,pvalue,log2FoldChange (from Step 3). outputprefix: Prefix for all output files (e.g. 'corrDMRDEG/stats/integrative'). methyldiff: Absolute methylation difference threshold (fraction points). exprfc: Fold-change threshold for expression (absolute, e.g. 1.5 for 1.5x).