find_common_differentially_methylated_regions
Find genes with shared differentially methylated regions across multiple assays, applying methylation/q-value thresholds plus promoter, exon, intron, and distance filters.
Instructions
USE THIS TOOL (not the query tool) for any "common DMRs
across assays", "genes hypermethylated in BOTH assays", "shared
hyper/hypomethylated regions", or any cross-assay methylation
intersection question — including promoter/exon/intron-filtered
and distance-bounded variants. Falling back to query for this
category reproduces the per-assay fetch + inner-join logic this
tool already does correctly (parallel fetches, MethylationRegion
location filtering applied during the Cypher so the common set
reflects the filtered universe, methylation_diff/q_value
thresholds, separate hyper vs. hypo intersections) and loses
the formatted markdown + inline CSV side-channel and the
assay-reference legend.
Find common differentially methylated genes across multiple assays.
This function:
Takes a list of assay IDs as input (2 or more)
Gets ALL genes associated with differentially methylated regions for each assay, applying the methylation_diff threshold, q_value threshold, and any MethylationRegion location filters (in_promoter, in_exon, in_intron, dist_to_feature_max)
Inner joins among hypermethylated genes and among hypomethylated genes
Returns markdown tables showing common genes and their methylation_diff values
Use the location filter parameters rather than post-filtering — they are applied during the Cypher query so the common gene set reflects the filtered universe correctly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| in_exon | No | MethylationRegion location filter (True / False / None). See in_promoter. | |
| assay_ids | Yes | List of assay identifiers for methylation comparisons | |
| in_intron | No | MethylationRegion location filter (True / False / None). See in_promoter. | |
| session_id | No | Session id returned by `create_session()`. This server serves many users from one process; the session id is what keeps your output directory and generated plots private to you. Pass the SAME value on every tool call. If the server replies that the session is unknown or expired, call `create_session()` again and use the new id. | |
| in_promoter | No | MethylationRegion location filter. When True, restrict to regions overlapping a gene promoter. When False, exclude promoter-overlapping regions. None (default) imposes no promoter filter. Applied during the Cypher query — passing in_promoter=True is the correct way to ask 'which genes are commonly hypermethylated IN THE PROMOTER across these assays'. | |
| q_value_threshold | No | q-value threshold for significance (default: 0.05) | |
| dist_to_feature_max | No | MethylationRegion distance filter. When set, restrict to regions with dist_to_feature <= this value (bp). None (default) imposes no distance filter. | |
| methylation_diff_threshold | No | Methylation difference threshold (default: 0.0 = any change) |