polymer-genomics-mcp
v1.1.0MCP server for the Polymer Genomics API — curated genomic reference data via Model Context Protocol
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_layers
List available data layers. Returns layer_key, type, row_count, evidence_class per layer. Use layer_key values with query_region, correlate_layers, etc. Args: build: Genome build ('hg38' or 'hg37'). Defaults to 'hg38'. layer_type: Filter by type ('cpg', 'gene_model', 'probe', etc.). evidence_class: Filter by epistemic class ('M','R','D','S','K','H','L'). tier: Filter by tier ('intrinsic','constrained','active').
| Parameter | Type | Description |
|---|---|---|
build | string | |
evidence_class | ||
layer_type | ||
tier |
query_region
Query genomic features overlapping a region. Returns GRanges JSON per layer. Use layers= to filter (e.g. 'cpg_sites,gencode_v44'), fields= to select mcols columns and reduce response size. Prefer aggregate_region for >500kb. For biophysics, use layers='sequence_biophysics_l0' (64 columns at 1kb). Args: build: Genome build ('hg38' or 'hg37'). region: Genomic region 'chr16:70699930-70700000' (1-based closed). layers: Comma-separated layer keys. Omit for all. fields: Comma-separated mcols fields (e.g. 'gc_content,stacking_dg37'). Omit for all.…
| Parameter | Type | Description |
|---|---|---|
build * | string | |
region * | string | |
cursor | ||
fields | ||
layers |
region_stats
Summary statistics (mean/median/sd/min/max/percentiles) for layers in a region. Much smaller response than query_region. Returns count+density for count layers. Args: build: Genome build ('hg38' or 'hg37'). region: Genomic region 'chr16:70699930-70700000' (1-based closed). layers: Comma-separated layer keys (e.g. 'sequence_biophysics_l0'). fields: Comma-separated fields to include (e.g. 'gc_content,stacking_dg37').
| Parameter | Type | Description |
|---|---|---|
build * | string | |
region * | string | |
fields | ||
layers |
get_sequence
Get the raw DNA sequence for a genomic region. Returns the nucleotide sequence (ACGT) for the specified region. Maximum 100,000 bp per request. Example output: {"sequence": "ATGCGATCGATCG...", "length": 1000, "region": "chr17:7668402-7669401"} Does NOT return annotations — use query_region for that. Does NOT compute biophysics — use evaluate_design (for arbitrary sequences) or compute_region_biophysics (for genomic coordinates). Args: build: Genome build ('hg38' or 'hg37'). region: Genomic region in format 'chr16:70699930-70700000' (1-bas…
| Parameter | Type | Description |
|---|---|---|
build * | string | |
region * | string |
lookup_gene
Look up gene by symbol. Returns exon/intron/UTR structure as GRanges. Aliases auto-resolved (OCT4 -> POU5F1, p53 -> TP53). For expression use lookup_gene_expression; for constraint use lookup_gene_constraint. Args: build: Genome build ('hg38' or 'hg37'). symbol: Gene symbol (e.g. 'TP53', 'BRCA1'). Aliases resolved.
| Parameter | Type | Description |
|---|---|---|
build * | string | |
symbol * | string |
lookup_probe
Look up methylation probe by ID. Returns coordinates, gene, CpG context, platforms. For multiple probes use batch_probes. For biophysics use annotate_probes_biophysics. Args: build: Genome build ('hg38' or 'hg37'). probe_id: Probe identifier (e.g. 'cg08796240').
| Parameter | Type | Description |
|---|---|---|
build * | string | |
probe_id * | string |
batch_probes
Look up multiple probes at once (batch, max 10,000). Returns the same fields as lookup_probe for each probe. Far more efficient than calling lookup_probe in a loop. Example output (truncated): {"data": {"found": 95, "not_found": 5, "probes": [ {"probe_id": "cg08796240", "chr": "chr16", "pos": 70699929, "gene_symbol": "VAC14", ...}, ... ]}} Does NOT return methylation values — use get_betas after loading IDATs. Args: build: Genome build ('hg38' or 'hg37'). probe_ids: List of probe identifiers (max 10,000).
| Parameter | Type | Description |
|---|---|---|
build * | string | |
probe_ids * | array |
annotate_probes_biophysics
Annotate probe list with biophysical context of each probe's 1kb window. Returns per-probe: coordinates, gene, CpG context, plus biophysical properties. Use fields= to select specific columns (e.g. 'gc_content,stacking_dg37,meth_sensitivity') — dramatically reduces response size. For coordinates only (no biophysics), use batch_probes instead. Args: build: Genome build ('hg38' or 'hg37'). probe_ids: List of probe identifiers (max 10,000). fields: Comma-separated biophysics columns. Omit for all 43.
| Parameter | Type | Description |
|---|---|---|
build * | string | |
probe_ids * | array | |
fields |
aggregate_region
Binned feature density for large regions. Use before query_region for >500kb. Returns count and density per bin. Drill into hotspots with query_region. Args: build: Genome build ('hg38' or 'hg37'). region: Genomic region 'chr16:70699930-70700000'. resolution: Bin size: 1000, 10000, 100000, or 1000000 bp. layers: Comma-separated layer keys.
| Parameter | Type | Description |
|---|---|---|
build * | string | |
region * | string | |
layers | ||
resolution | integer |
lookup_gene_cost
Gene bioenergetic cost: ATP synthesis cost (ECPAgene), codon metrics (CAI, tAI, ENC), amino acid fractions, and tissue-specific expression-weighted cost (EWGC from GTEx). Args: build: Genome build ('hg38' or 'hg37'). symbol: Gene symbol (e.g. 'ALB', 'TP53').
| Parameter | Type | Description |
|---|---|---|
build * | string | |
symbol * | string |
lookup_gene_expression
Gene expression across 54 tissues (GTEx v10). Returns per-tissue median TPM plus summary (max tissue, n_expressed, breadth). Args: build: Genome build ('hg38' or 'hg37'). symbol: Gene symbol (e.g. 'TP53', 'ALB').
| Parameter | Type | Description |
|---|---|---|
build * | string | |
symbol * | string |
query_proximity
Query annotations around a gene with a specified radius. Resolves gene symbol to coordinates, expands by radius on each side, and returns all overlapping features. Equivalent to lookup_gene + query_region but in a single call. Example output (truncated): {"data": {"gencode_v44": {...}, "cpg_sites": {...}, "probe_epic_v2": {...}}, "query": {"gene": "TP53", "radius": 5000, "resolved_region": "chr17:7663402-7692550"}} Does NOT return biophysical properties — chain with compute_region_biophysics. Does NOT return expression — use lookup_gene_expression separa…
| Parameter | Type | Description |
|---|---|---|
build * | string | |
gene * | string | |
layers | ||
radius | integer |
search
Search for genes by symbol prefix (also searches aliases/synonyms). Returns matching gene symbols with their canonical names. Use this before lookup_gene when unsure of the exact symbol. Example output: {"results": [ {"symbol": "BRCA1", "name": "BRCA1 DNA repair associated", "chr": "chr17"}, {"symbol": "BRCA2", "name": "BRCA2 DNA repair associated", "chr": "chr13"} ]} Does NOT return gene structure — follow up with lookup_gene. Args: query: Search term (minimum 2 characters). Case-insensitive prefix match. build: Genome build ('hg38…
| Parameter | Type | Description |
|---|---|---|
query * | string | |
build | string |
lookup_protein_abundance
Look up tissue-specific protein abundance for a gene (PaxDb v6.0). Returns protein abundance in parts per million (PPM) from mass spectrometry across multiple human tissues. Example output (truncated): {"data": {"symbol": "ALB", "tissues": {"Plasma": 54000.0, "Liver": 23000.0, ...}, "summary": {"max_ppm": 54000.0, "max_tissue": "Plasma"}}} Does NOT return RNA expression — use lookup_gene_expression (GTEx TPM). Does NOT return protein localization — use lookup_protein_atlas (HPA). Args: build: Genome build ('hg38' or 'hg37'). symbol: Gene…
| Parameter | Type | Description |
|---|---|---|
build * | string | |
symbol * | string |
lookup_gene_constraint
Look up evolutionary constraint metrics for a gene (gnomAD v4). Returns loss-of-function intolerance (pLI, LOEUF), missense constraint (mis_z), and synonymous constraint (syn_z). Lower LOEUF = more constrained. Example output: {"data": {"symbol": "TP53", "pLI": 0.999, "oe_lof_upper": 0.13, "mis_z": 3.42, "syn_z": 0.87}} Key output fields: - pLI: probability of loss-of-function intolerance (>0.9 = highly constrained) - oe_lof_upper: LOEUF — observed/expected LoF upper bound (<0.35 = constrained) - mis_z: missense Z-score (>3 = missense-constrained)…
| Parameter | Type | Description |
|---|---|---|
build * | string | |
symbol * | string |
lookup_gene_pathways
Look up Reactome pathway memberships for a gene. Returns all pathways a gene participates in, with pathway hierarchy, evidence codes, and top-level category. Example output (truncated): {"data": {"symbol": "TP53", "pathways": [ {"pathway_id": "R-HSA-6791312", "name": "TP53 Regulates Transcription of Cell Cycle Genes", "top_category": "Cell Cycle", "evidence": "TAS"}, ... ], "n_pathways": 42}} Does NOT return gene sets — use lookup_gene_sets (MSigDB Hallmark). Does NOT return expression — use lookup_gene_expression. Args: build:…
| Parameter | Type | Description |
|---|---|---|
build * | string | |
symbol * | string |
lookup_gene_sets
Look up MSigDB Hallmark gene set memberships for a gene. Returns which of the 50 Hallmark gene sets a gene belongs to. Standard for functional interpretation of gene lists. Example output: {"data": {"symbol": "MYC", "gene_sets": [ "HALLMARK_MYC_TARGETS_V1", "HALLMARK_MYC_TARGETS_V2", "HALLMARK_E2F_TARGETS", "HALLMARK_G2M_CHECKPOINT" ], "n_sets": 4}} Does NOT return Reactome pathways — use lookup_gene_pathways. Args: build: Genome build ('hg38' or 'hg37'). symbol: Gene symbol (e.g. 'TP53', 'BRCA1', 'MYC').
| Parameter | Type | Description |
|---|---|---|
build * | string | |
symbol * | string |
lookup_protein_atlas
Look up Human Protein Atlas data for a gene. Returns antibody-based protein expression across ~45 normal tissues (Not detected/Low/Medium/High) and subcellular localization across 26 compartments. Bridges RNA expression to protein reality. Example output (truncated): {"data": {"symbol": "TP53", "tissue_expression": [ {"tissue": "Liver", "level": "Medium", "cell_type": "hepatocytes"}, ... ], "subcellular": ["Nucleoplasm", "Cytosol"]}} Does NOT return RNA expression — use lookup_gene_expression (GTEx). Does NOT return protein abundance — use loo…
| Parameter | Type | Description |
|---|---|---|
build * | string | |
symbol * | string |
bulk_download
Get a presigned download URL for bulk layer data. Returns a temporary (1-hour) download URL for the complete dataset. Example output: {"url": "https://storage.googleapis.com/...", "expires_in": 3600, "layer_key": "probe_epic_v2", "row_count": 937000} Use this for offline analysis — e.g. all 937K EPIC v2 probes. Does NOT return data directly — download from the returned URL. Args: layer_key: Layer identifier (e.g. 'probe_epic_v2', 'cpg_sites').
| Parameter | Type | Description |
|---|---|---|
layer_key * | string |
lookup_nn_parameters
Nearest-neighbor thermodynamic parameters (dH, dS, dG37) per dinucleotide step. Sources: SantaLucia 1998 (DNA/DNA), Xia/Turner 1998 (RNA/RNA), Sugimoto 1995 (RNA/DNA). Args: duplex_type: 'dna_dna', 'rna_rna', or 'rna_dna'. dinucleotide: Specific step (e.g. 'CG'). Omit for all 16.
| Parameter | Type | Description |
|---|---|---|
dinucleotide | ||
duplex_type | string |
lookup_dinucleotide_properties
Look up per-dinucleotide biophysical properties. Returns extinction coefficients (Tataurov 2008), A/Z-form propensity (El Hassan & Calladine 1997, Ho 1994), and groove geometry (major/minor groove width and depth) per dinucleotide step. Example output (for dinucleotide='CG'): {"data": {"dinucleotide": "CG", "extinction_260_M_cm": 7600, "a_form_propensity": 0.85, "z_form_propensity": 0.92, "major_groove_width_A": 11.2, "minor_groove_width_A": 5.9}} Does NOT compute over a sequence — use evaluate_design for that. Args: dinucleotide: Optional sp…
| Parameter | Type | Description |
|---|---|---|
dinucleotide | ||
property_set | string |
lookup_amino_acid_properties
Look up amino acid biophysical reference properties. Returns molecular weight (Da), van der Waals volume (A^3), SASA (A^2), hydrophobicity (Kyte-Doolittle, Wimley-White, Eisenberg), pKa, charge at pH 7, and biosynthetic cost (Akashi-Gojobori ATP equivalents). Example output (for residue='W'): {"data": {"residue": "W", "name": "Tryptophan", "mw_da": 204.23, "volume_A3": 163.3, "hydrophobicity_kd": -0.9, "cost_atp": 74.3, "pka_sidechain": null, "charge_ph7": 0}} Does NOT return gene-level cost — use lookup_gene_cost for protein cost. Args: resi…
| Parameter | Type | Description |
|---|---|---|
residue | ||
scale | string |
lookup_physical_constants
Look up scalar biophysical constants with citations. Returns named constants with values, units, experimental context, and primary literature references. Categories: mechanics, kinetics, electrostatics, nucleosome, thermodynamics. Example output (for name='lp_bdna_physiological_nm'): {"data": {"name": "lp_bdna_physiological_nm", "value": 50.0, "unit": "nm", "context": "B-DNA in 150 mM NaCl, 25C", "source": "Hagerman 1988", "category": "mechanics"}} Does NOT compute over sequences — these are scalar reference values. Args: name: Optional exact…
| Parameter | Type | Description |
|---|---|---|
category | ||
name |
compute_region_biophysics
Per-dinucleotide biophysics for a genomic region (max 1Mb). One row per step. For arbitrary sequences use evaluate_design instead. Args: build: Genome build ('hg38' or 'hg37'). region: Genomic region 'chr16:70699930-70700000' (1-based closed, max 1Mb). duplex_type: 'dna_dna' (default), 'rna_rna', or 'rna_dna'. salt_mm: NaCl in mM (1000=standard, 150=physiological). properties: Comma-separated: thermodynamics, extinction, form_propensity, groove, structural, contextual, curvature, motifs, or 'all'.
| Parameter | Type | Description |
|---|---|---|
build * | string | |
region * | string | |
duplex_type | string | |
properties | string | |
salt_mm | number |
correlate_layers
Correlate two data layers in a region (bins, then computes statistic). Stats: pearson_r, spearman_rho, overlap_enrichment, jaccard, fisher_exact. Args: build: Genome build ('hg38' or 'hg37'). region: Genomic region 'chr16:70699930-70700000' (1-based closed). layer_a: First layer key (e.g. 'cpg_sites'). layer_b: Second layer key (e.g. 'gencode_v44'). stat: 'pearson_r', 'spearman_rho', 'overlap_enrichment', 'jaccard', or 'fisher_exact'. resolution: Bin size in bp (1000, 10000, 100000, or 1000000). Default 10000. field_a: Numeric f…
| Parameter | Type | Description |
|---|---|---|
build * | string | |
layer_a * | string | |
layer_b * | string | |
region * | string | |
stat * | string | |
field_a | string | |
field_b | string | |
resolution | integer |
lookup_sbs_spectrum
96-channel COSMIC SBS spectrum with thermodynamic impact (delta_dG37 per channel). Positive delta = destabilizing mutation. Reference values from SantaLucia 1998. Args: mutation_type: Filter by type (e.g. 'C>A'). Returns 16 channels. channel: Specific channel (e.g. 'A[C>A]G'). Returns 1 entry.
| Parameter | Type | Description |
|---|---|---|
channel | ||
mutation_type |
lookup_clock_probes
Look up epigenetic clock probe coefficients. Returns probe weights for: Horvath (2013, pan-tissue), Hannum (2013, blood), PhenoAge (Levine 2018), GrimAge (Lu 2019), DunedinPACE (Belsky 2022), Retro-Age (retro_age_v2, retro_age_450k, retro_age_panmammalian). Query by clock name → all probes for that clock. Query by probe_id → all clocks using that probe. Example output (for clock='horvath_2013', truncated): {"data": {"clock": "horvath_2013", "n_probes": 353, "probes": [ {"probe_id": "cg16867657", "coefficient": 0.0217, "intercept_contrib": 0.0012},…
| Parameter | Type | Description |
|---|---|---|
clock | ||
probe_id |
clock_physics
Get the biophysical profile of every probe in an epigenetic clock. Returns per-probe: coefficient, coordinates, gene, CpG context, and the full biophysical properties (stacking energy, curvature, methylation sensitivity, deformability, etc.) of the 1kb window containing the probe. Also returns aggregate statistics across the entire clock including coefficient-weighted biophysical means. Use this to understand WHY specific CpGs are in aging clocks — what is physically special about these sites? Args: clock: Clock name (horvath_2013, hannum_2013, phen…
| Parameter | Type | Description |
|---|---|---|
clock * | string | |
build | string | |
top_n |
list_clocks
List all available epigenetic clocks with metadata. Returns clock names, probe counts, and descriptions for all clocks that have been loaded into the database. Use the clock names as input to the clock_physics and compare_clock_physics tools. Args: build: Genome build (hg38 or hg37). Default: hg38.
| Parameter | Type | Description |
|---|---|---|
build | string |
get_layer_detail
Get detailed metadata for a single data layer. Returns the full layer record including version, evidence class, tier, validation status, row count, license class, and content hash. Use list_layers first to discover available layer_keys, then this tool to inspect a specific layer in detail. Args: layer_key: The layer identifier (e.g., 'gencode_v44', 'cpg_sites').
| Parameter | Type | Description |
|---|---|---|
layer_key * | string |
compare_clock_physics
Compare the biophysical profiles of two epigenetic clocks. Returns: shared vs unique probes, biophysical summary stats for each clock, and deltas showing how the clocks differ in DNA physical properties (stacking energy, methylation sensitivity, etc.). Use this to discover whether different clocks target biophysically distinct regions of the genome. Args: clock_a: First clock name (e.g. 'horvath_2013'). clock_b: Second clock name (e.g. 'phenoage_2018'). build: Genome build (hg38 or hg37). Default: hg38.
| Parameter | Type | Description |
|---|---|---|
clock_a * | string | |
clock_b * | string | |
build | string |
variant_physics
Compute biophysical consequences of genetic variants. For each variant, returns delta stacking energy, delta curvature, delta Tm, nucleosome disruption, non-B DNA motif creation/destruction, CpG site impact, and cross-references with conservation, ClinVar, and regulatory elements. Returns interpretable physical mechanisms -- not a black-box score. Args: variants: List of variant dicts, each with keys: chr, pos (1-based), ref, alt. Example: [{"chr": "chr17", "pos": 7675088, "ref": "G", "alt": "A"}] build: Genome build (hg38 or hg37). Defa…
| Parameter | Type | Description |
|---|---|---|
variants * | array | |
build | string | |
cross_reference | boolean | |
flank | integer |
lookup_probe_repeat_overlap
Look up probes overlapping repeat elements (LINE, SINE, LTR, DNA transposons). Returns which probes sit inside transposable elements, with evolutionary age classification (young/intermediate/ancient) and sequence divergence. Example output (truncated): {"data": {"probes": [ {"probe_id": "cg16867657", "repeat_name": "L1HS", "repeat_class": "LINE", "repeat_age": "young", "divergence_pct": 2.1, "platform": "epic_v2"}, ... ], "total": 42}} Does NOT return probe coordinates — use lookup_probe for position/gene/context. Args: probe_id: Opt…
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
platform | ||
probe_id | ||
repeat_age | ||
repeat_class |
intersect_layers
Find positions matching cross-layer conditions (AND logic). Example: [{"layer":"biophysics","field":"stacking_dG37","op":">","value":-1.0}, {"layer":"cpg_islands","op":"overlaps"}] Operators: overlaps, >, <, >=, <=, ==, !=, between. Args: build: Genome build ('hg38' or 'hg37'). region: Genomic region 'chr16:70000000-71000000'. filters: List of filter dicts with 'layer', 'op', optionally 'field'/'value'. return_layers: Layer keys to annotate hits with. limit: Max results (default 1000, max 10000).
| Parameter | Type | Description |
|---|---|---|
build * | string | |
filters * | array | |
region * | string | |
limit | integer | |
return_layers |
evaluate_design
Physics linter for any DNA sequence (10-100kb). Start here for construct evaluation. Returns summary (GC, CpG, Tm, dG37), CpG islands, thermodynamic/structural profiles, and flags (CPG_ISLAND, HOMOPOLYMER, Z_FORM_PRONE, EXTREME_GC_WINDOW, etc.). For genomic coordinates, use compute_region_biophysics instead. Args: sequence: DNA sequence (ACGT). 10-100,000 bp. name: Label for this sequence. analysis: 'full' (default), 'thermodynamic', or 'structural'. salt_mm: NaCl in mM (1000=standard, 150=physiological). window_size: Window size in bp…
| Parameter | Type | Description |
|---|---|---|
sequence * | string | |
analysis | string | |
name | string | |
salt_mm | number | |
window_size | integer |
compare_sequences
Compare biophysical properties of 2-10 DNA sequences side-by-side. Returns per-sequence evaluation plus deltas vs the first (reference) sequence: delta GC, delta CpG islands, flags added/removed. Does not align sequences. Args: sequences: Dict of name -> DNA sequence. First = reference. analysis: 'full' (default), 'thermodynamic', or 'structural'. salt_mm: NaCl in mM (1000=standard, 150=physiological). window_size: Window size in bp for profiles (default 100).
| Parameter | Type | Description |
|---|---|---|
sequences * | object | |
analysis | string | |
salt_mm | number | |
window_size | integer |
evaluate_construct
Evaluate a multi-part DNA construct with junction analysis and assembly flags. Returns per-part biophysics, junction properties (~50bp around each join), and assembly flags (INTERNAL_RESTRICTION_SITE, JUNCTION_HOMOPOLYMER, CROSS_PART_REPEAT, EXTREME_GC_WINDOW, JUNCTION_CPG_ISLAND). Each part: {"name": "CMV", "sequence": "ATGCGA...", "role": "promoter"} Roles: promoter, cds, utr5, utr3, terminator, backbone, linker, spacer, generic. Args: parts: Ordered list of dicts with 'name', 'sequence', 'role' keys. name: Label for the construct. circular:…
| Parameter | Type | Description |
|---|---|---|
parts * | array | |
analysis | string | |
circular | boolean | |
name | string | |
salt_mm | number |
batch_evaluate
Batch-evaluate up to 100 DNA sequences independently. Unlike compare_sequences, this does NOT compute deltas — each sequence is evaluated on its own. Returns per-sequence reports plus a batch summary (GC range, total warnings, sequences with warnings). Designed for synthetic biology teams screening candidate libraries. Args: sequences: Dict mapping names to DNA sequences. 1-100 sequences. Example: {"variant_1": "ATGCGA...", "variant_2": "ATGCGA..."} analysis: 'full' (default), 'thermodynamic', or 'structural'. salt_mm: NaCl in…
| Parameter | Type | Description |
|---|---|---|
sequences * | object | |
analysis | string | |
salt_mm | number | |
window_size | integer |
region_profile
Comprehensive profile of a genomic region across ALL data layers. The "tell me everything about this region" query. Runs every active layer and returns feature counts, density per kb, and significance flags. Optionally includes negative annotations (layers with NO features) which can be informative — "this region has no GWAS hits" is useful information. Max region: 1 Mb. For larger regions use aggregate_region. Args: build: Genome build ('hg38' or 'hg37'). region: Genomic region (1-based closed), e.g. 'chr17:7668402-7687550'. include_negati…
| Parameter | Type | Description |
|---|---|---|
build * | string | |
region * | string | |
include_negative | boolean |
query_recipe
Get prebuilt cross-layer query recipes. Recipes are curated intersect_layers queries that answer common biological questions (e.g., "find silencing-prone regions", "find conserved non-B DNA"). Call without recipe_key to list all available recipes. Call with recipe_key to get the full filter specification, ready to submit to intersect_layers. Available recipes: silencing_prone_regions, biophysically_unusual_cpg_islands, regulatory_hotspots, conserved_nonb_dna, repeat_fragility_zones. Args: recipe_key: Specific recipe to retrieve. Omit to list all reci…
| Parameter | Type | Description |
|---|---|---|
recipe_key |
platform_summary
Platform-wide statistics for Polymer Genomics. Returns total layers, total rows, supported builds, evidence class distribution, and layer type breakdown. Useful for understanding the scope of available data.
validate_layer
Run validation checks on a data layer. Checks row counts, value ranges, and null fractions against per-layer specifications. Omit layer_key to validate all layers. Returns pass/fail for each check with summary counts.
| Parameter | Type | Description |
|---|---|---|
build | string | |
layer_key |
cpg_profile
Comprehensive CpG site or probe dossier — coordinates, gene context, regulatory state, biophysics. Returns a unified profile combining probe annotation, CpG context, regulatory overlap (DHS, TFBS), and biophysical properties for a single CpG site. Query by probe ID or genomic position. Args: build: Genome build ('hg38' or 'hg37'). query: Probe ID (e.g. 'cg00000029') or genomic position (e.g. 'chr1:15865').
| Parameter | Type | Description |
|---|---|---|
build * | string | |
query * | string |
gene_profile
Gene profile with anomaly detection — biophysical, expression, and constraint summary. Returns a comprehensive gene dossier combining structure, expression, constraint scores, and biophysical properties with anomaly flags highlighting unusual values. Args: build: Genome build ('hg38' or 'hg37'). symbol: Gene symbol (e.g. 'TP53', 'BRCA1').
| Parameter | Type | Description |
|---|---|---|
build * | string | |
symbol * | string |
similar_genes
Find genes with similar biophysical and expression profiles. Returns a ranked list of genes most similar to the query gene, scored by biophysical properties, expression pattern, or an integrated combination. Args: build: Genome build ('hg38' or 'hg37'). symbol: Gene symbol to find similar genes for. mode: Similarity mode ('integrated', 'biophysics', 'expression'). Defaults to 'integrated'. limit: Maximum number of results (default 20).
| Parameter | Type | Description |
|---|---|---|
build * | string | |
symbol * | string | |
limit | integer | |
mode | string |
transposome_families
List all transposable element families with summary statistics. Returns family-level aggregates: probe count, genomic coverage, mean biophysical properties, and subfamily breakdown for all TE families in the database.
transposome_family
Get details for a specific transposable element family — probe coverage, biophysics, genomic distribution. Returns per-subfamily breakdown, probe coverage, biophysical summary statistics, and chromosomal distribution for the specified TE family. Args: family_id: TE family identifier (e.g. 'L1HS', 'AluY', 'HERVK').
| Parameter | Type | Description |
|---|---|---|
family_id * | string |
lookup_hla_loci
List HLA loci with allele counts and mean biophysics. Returns the 6 transplant-relevant loci (HLA-A, -B, -C, -DRB1, -DQB1, -DPB1) with total allele counts, genomic allele counts, and mean biophysical properties for both coding and non-coding regions.
lookup_hla_alleles
Browse HLA alleles for a locus with biophysics summaries. Args: locus: HLA locus (e.g., 'HLA-A', 'A', 'HLA-DRB1'). allele_group: Filter by 1st field (e.g., '02' for A*02 alleles). limit: Max results per page (default 50). offset: Pagination offset.
| Parameter | Type | Description |
|---|---|---|
locus * | string | |
allele_group | ||
limit | integer | |
offset | integer |
lookup_hla_allele
Get full biophysics for a specific HLA allele. Returns complete biophysical profile including coding and non-coding region properties for one allele. Args: allele_name: Full allele name (e.g., 'A*01:01:01:01', 'B*07:02:01').
| Parameter | Type | Description |
|---|---|---|
allele_name * | string |
lookup_hla_distributions
Get biophysical distribution statistics for an HLA locus. Returns histogram bins, percentiles, and summary stats for all biophysical metrics across all genomic alleles at the locus. Args: locus: HLA locus (e.g., 'HLA-A', 'A').
| Parameter | Type | Description |
|---|---|---|
locus * | string |
compare_hla_alleles
Compare biophysical properties of 2-10 HLA alleles. Returns per-allele biophysics plus pairwise delta tables. First allele is the reference for delta computation. Args: alleles: 2-10 allele names (e.g., ['A*01:01:01:01', 'A*02:01:01:01']). focus: Delta focus: 'noncoding' (default), 'full', or 'coding'.
| Parameter | Type | Description |
|---|---|---|
alleles * | array | |
focus | string |
hla_match_score
Compute biophysical mismatch score for donor-recipient HLA matching. Beyond protein-level matching, computes non-coding biophysical divergence that may correlate with expression mismatch (Bettens et al. 2022). Args: donor: Donor genotype as {locus: {allele_1: str, allele_2: str}}. recipient: Recipient genotype, same format.
| Parameter | Type | Description |
|---|---|---|
donor * | object | |
recipient * | object |
hla_noncoding_divergence
Analyze non-coding divergence among protein-identical HLA alleles. Given a locus + protein (e.g., HLA-A*02:01), finds all alleles encoding the same protein and ranks by non-coding biophysical divergence. Args: locus: HLA locus (e.g., 'HLA-A'). allele_group: 1st field (e.g., '02'). protein: 2nd field (e.g., '01').
| Parameter | Type | Description |
|---|---|---|
allele_group * | string | |
locus * | string | |
protein * | string |
hla_expression_correlation
Correlate HLA biophysical properties with expression class. Groups alleles by IMGT expression suffix and computes Cohen's d effect sizes for normal vs each aberrant class. Args: locus: Filter by locus (e.g., 'A'). None for all loci. focus: Metric set: 'noncoding' (default), 'full', or 'both'.
| Parameter | Type | Description |
|---|---|---|
focus | string | |
locus |
hla_expression_within_protein
Test whether non-coding biophysics predict expression within protein-identical alleles. The strongest test: among alleles encoding the SAME protein, do those with expression suffixes have different non-coding biophysics? Args: locus: Filter by locus. None for all. min_alleles: Minimum alleles per protein group (default 3).
| Parameter | Type | Description |
|---|---|---|
locus | ||
min_alleles | integer |
lookup_transposome_probe_mapping
Get full probe-to-TE family mapping for a platform. Returns all probes that overlap transposable elements, grouped by TE family, with divergence and evolutionary age data. Args: platform: Array platform ('epic_v2', 'epic_v1', '450k'). build: Genome build ('hg38' or 'hg37').
| Parameter | Type | Description |
|---|---|---|
build | string | |
platform | string |
lookup_transposome_reference_methylation
Get reference methylation ranges per TE family. Returns curated reference beta ranges, primary silencing mechanism, and reactivation score for each TE family.
compare_constructs
Compare biophysical properties of 2-10 synthetic DNA constructs. Each construct has parts [{name, sequence, role}]. Returns per-construct evaluation plus delta comparison table. Args: constructs: List of 2-10 construct dicts, each with 'name' and 'parts' keys. salt_mm: Salt concentration in mM (default 150). analysis: Analysis depth ('full' or 'summary').
| Parameter | Type | Description |
|---|---|---|
constructs * | array | |
analysis | string | |
salt_mm | number |
lookup_layer_license
Get license, citation, and source info for a data layer. Args: layer_key: Layer identifier (e.g., 'probe_epic_v2', 'cpg_sites_hg38').
| Parameter | Type | Description |
|---|---|---|
layer_key * | string |
platform_feature_counts
Get authoritative feature counts for the platform. Returns total protein-coding genes, CpG sites, probes, and other feature counts for the specified genome build. Args: build: Genome build ('hg38' or 'hg37').
| Parameter | Type | Description |
|---|---|---|
build | string |
get_tile
Get pre-tiled data for genome browser visualization. Returns GRanges data for a specific tile at a given resolution. Args: build: Genome build ('hg38' or 'hg37'). chr_name: Chromosome name (e.g., 'chr17'). resolution: Tile resolution ('1k', '10k', '100k', '1M'). tile_index: Zero-based tile index within the chromosome. layers: Comma-separated layer types to include.
| Parameter | Type | Description |
|---|---|---|
build * | string | |
chr_name * | string | |
resolution * | string | |
tile_index * | integer | |
layers |
analyze_te_methylation
TE methylation analysis from beta values. Returns per-family methylation scores, reactivation risk, and optional Retro-Age clock estimate. Args: beta_values: Dict of probe_id -> beta value (0.0-1.0). platform: 'epic_v2', 'epic_v1', or '450k'. Auto-detected if omitted. chronological_age: Optional age for Retro-Age delta.
| Parameter | Type | Description |
|---|---|---|
beta_values * | object | |
chronological_age | ||
platform |
te_platform_coverage
TE family probe coverage by platform. Returns which TE families can be measured on a given platform, with probe counts per family. Useful for understanding array limitations before analyzing TE methylation. Args: platform: Platform ('epic_v2', 'epic_v1', '450k').
| Parameter | Type | Description |
|---|---|---|
platform | string |
query_recombination_hotspots
Recombination landscape: NCO events (Palsson 2025), DSB hotspots (Pratto 2014), and CO/NCO/DSB rates at 1kb windows. Three layers in one call. Args: build: Genome build ('hg38' or 'hg37'). region: Genomic region 'chr6:20000000-30000000' (1-based closed). parent_type: Filter NCO events: 'M' (maternal) or 'P' (paternal).
| Parameter | Type | Description |
|---|---|---|
build * | string | |
region * | string | |
parent_type |
load_idats
Load Illumina IDAT files and create an analysis session. Reads paired Red/Green IDAT files from a directory, auto-detects array type (450K, EPIC, EPICv2), and runs initial QC (detection p-values). This is always the FIRST step. Returns a session_id used by all subsequent tools. PREREQUISITES: Local R with minfi installed. Args: idat_directory: Path to directory containing .idat files (searched recursively). sample_sheet: Optional path to SampleSheet.csv. Auto-detected if omitted.
| Parameter | Type | Description |
|---|---|---|
idat_directory * | string | |
sample_sheet |
normalize
Normalize methylation data within an analysis session. Applies the chosen normalization method to the raw RGChannelSet. Run after load_idats. Available methods: - opensesame: SeSAMe openSesame (canonical for EPICv2, recommended) - funnorm: Functional normalization (default, good for 450K/EPIC) - quantile: Quantile normalization - noob: Normal-exponential out-of-band - raw: No normalization Args: session_id: Session ID from load_idats. method: Normalization method. Default 'funnorm'.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
method | string |
filter_probes
Filter probes by QC criteria. Removes failed, SNP-associated, sex chromosome, and cross-reactive probes. Run after normalize. Returns counts of probes removed at each step. Args: session_id: Session ID from load_idats. remove_snp: Remove probes at known SNP positions. Default True. remove_sex: Remove sex chromosome probes. Default True. remove_crossreactive: Remove cross-reactive probes (maxprobes). Default True. detection_threshold: Detection p-value threshold. Default 0.01.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
detection_threshold | number | |
remove_crossreactive | boolean | |
remove_sex | boolean | |
remove_snp | boolean |
run_limma
Run differential methylation analysis with limma. Performs limma eBayes on M-values with the specified group contrast. Run after filter_probes. Returns top hits and writes full results to dmps.csv in the session. For two-group comparisons, contrast is auto-generated. For >2 groups, provide an explicit contrast (e.g., 'TET2_mut-WT'). Args: session_id: Session ID from load_idats. group_column: Column name in sample sheet defining groups. contrast: Explicit contrast string (e.g., 'TET2_mut-WT'). Auto-detected…
| Parameter | Type | Description |
|---|---|---|
group_column * | string | |
session_id * | string | |
contrast | ||
covariates | ||
fdr | number |
get_betas
Get beta values (methylation levels 0-1) from the session. For a small number of probes (<=100), returns values inline. For larger requests, writes to CSV and returns the file path. Args: session_id: Session ID from load_idats. probes: Optional list of probe IDs. Returns all probes if omitted.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
probes |
get_m_values
Get M-values (log2 ratio, used for statistics) from the session. For a small number of probes (<=100), returns values inline. For larger requests, writes to CSV and returns the file path. Args: session_id: Session ID from load_idats. probes: Optional list of probe IDs. Returns all probes if omitted.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
probes |
volcano_plot
Generate a volcano plot from differential methylation results. Creates SVG and PNG volcano plots showing significance vs effect size. Run after run_limma. Returns base64-encoded PNG for inline display. Args: session_id: Session ID from load_idats. fdr: FDR threshold for significance line. Default 0.05. deltabeta: Delta-beta threshold for effect size lines. Default 0.1.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
deltabeta | number | |
fdr | number |
cluster_probes
Generate a clustering heatmap of top variable probes. Selects the most variable probes, performs hierarchical clustering, and generates a heatmap with sample annotations. Returns base64-encoded PNG and cluster assignments. Args: session_id: Session ID from load_idats. n_probes: Number of top variable probes to include. Default 1000. method: Clustering method ('hclust'). Default 'hclust'. distance: Distance metric ('euclidean', 'manhattan', 'correlation'). Default 'euclidean'.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
distance | string | |
method | string | |
n_probes | integer |
session_status
Check the status of an analysis session. Returns which pipeline steps have been completed, sample count, probe count, and creation time. Args: session_id: Session ID from load_idats.
| Parameter | Type | Description |
|---|---|---|
session_id * | string |
cleanup_session_tool
Remove an analysis session and all its data. Deletes the session directory including all checkpoints, results, and plots. This cannot be undone. Args: session_id: Session ID to remove.
| Parameter | Type | Description |
|---|---|---|
session_id * | string |