Przejdź do głównej zawartości

Filter an annotated sample with GeneBe MCP

Use GeneBe MCP to filter the variant table of a completed sample you can access in GeneBe. This worked example looks for rare variants in LMNA with a non-reference genotype. It starts with the actual table schema and ends with the filter and matching rows, so you can reproduce the query in another session.

Find the sample and inspect the variant table​

Connect your assistant to https://mcp.genebe.net/v1/signed-in/mcp and sign in with access to the sample. See the GeneBe MCP sign-in steps. You need a completed sample with a queryable variant table. If you still have a local VCF, follow Annotate a whole sample first.

  1. Provide the sample ID, or use search_my_samples to find it by name or project. Confirm the ID if more than one sample matches.
  2. Use list_sample_files for that sample and select the variant file marked queryable.
  3. Use describe_sample_file to find the gene, genotype and gnomAD frequency columns and check their types and filter syntax. For a table with separate genotype columns per person, pick the column for the intended sample member.

Query rare non-reference variants​

Copy this prompt into your connected assistant and replace the sample ID.

Use GeneBe MCP to inspect my completed sample <sample ID>.
List its files and identify the queryable variant table. Describe the table
before querying it. Use the actual columns and allowed filter syntax to find
LMNA variants with a non-reference genotype and a known gnomAD allele
frequency below 0.01. Exclude missing genotypes and missing frequencies.
If you cannot identify a required column, tell me which one is missing.

Return the sample and file IDs, the exact filter, the number of rows
returned, and a table with variant coordinates and alleles, genotype and
frequency. Report when the query reaches the tool's 50-row limit.

For a table with gene, gt and AF_gnomad4 columns, a filter passed to query_sample_file could look like this. Use the genotype values and missing-value syntax from the table description.

gene = 'LMNA' AND gt <> 'REF/REF' AND AF_gnomad4 < 0.01

Confirm how the table represents missing genotypes and frequencies. If the table uses sentinel strings or numbers, explicitly exclude them with the syntax reported by describe_sample_file.

Verify the reported rows​

The following illustrates the output shape with a synthetic row. Your sample determines the available columns and values.

GeneVariantGenotypegnomAD allele frequency
LMNAchr1-156137000-C-TREF/ALT0.0004

Keep the sample ID, file ID, genome build and exact filter with the result. A query returns up to 50 rows per call. If the response reaches that limit, report the returned rows as a subset and use narrower filters to inspect specific regions or subsets. See the signed-in MCP tool reference for the sample tools.