{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-docs/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Variant lookup","description":"Reference, guides and recipes for the Franklin API — create cases, link sample files, retrieve variants and reports."},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"variant-lookup","__idx":0},"children":["Variant lookup"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Three endpoints answer three different questions about a variant. None of them needs a case."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Question"},"children":["Question"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Endpoint"},"children":["Endpoint"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["What is this variant, normalized?"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/api/openapi/variant-search/searchvariant"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /v1/variant/search"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["What does Franklin know about it: annotation, frequencies, predictions, ClinVar, ACMG?"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/api/openapi/variant-search/searchsnpv2"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /v2/search/snp/"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Has my lab classified it before?"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/api/openapi/variant-search/getvariantsorgassessments"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /v1/variant/org_assessments"]}]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["All three accept ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["reference_version"]}," of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["HG19"]}," (the default) or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["HG38"]},". Always send it explicitly."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"resolve-any-notation","__idx":1},"children":["Resolve any notation"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["search_text"]}," accepts HGVS (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["NM_000546.5:c.215C>G"]},"), protein notation (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TP53 p.R72P"]},"), coordinates (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chr17-7577120-C-G"]},") or an rsID (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["rs28934576"]},"):"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"r = client.request(\"GET\", \"/v1/variant/search\", params={\n    \"search_text\": \"NM_000546.5:c.215C>G\",\n    \"reference_version\": \"HG38\",\n})\n","lang":"python"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The response lists the matching variants with gene, HGVS c. and p., chromosomal location, dbSNP ID and a link to the variant in Franklin. A notation can match more than one variant, so check the count before taking the first."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"get-full-annotation","__idx":2},"children":["Get full annotation"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"r = client.request(\"GET\", \"/v2/search/snp/\", params={\n    \"search_text\": \"chr17-7577120-C-G\",\n    \"reference_version\": \"HG19\",\n})\n","lang":"python"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The trailing slash in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/search/snp/"]}," is part of the path. The response covers transcripts (Ensembl and RefSeq), gnomAD frequencies, predictions (SIFT, PolyPhen2, REVEL, SpliceAI and more), ClinVar and UniProt evidence, and Franklin's automated ACMG classification with the rules that fired."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400"]}," means the text couldn't be parsed, or the variant wasn't found."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"check-your-labs-classifications-in-bulk","__idx":3},"children":["Check your lab's classifications, in bulk"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"r = client.request(\"POST\", \"/v1/variant/org_assessments\", json={\"variants\": [\n    {\"chromosome\": \"chr17\", \"position\": 7577120, \"reference\": \"C\", \"alternative\": \"G\", \"reference_version\": \"HG19\"},\n    {\"chromosome\": \"13\", \"position\": 32914438, \"reference\": \"T\", \"alternative\": \"C\", \"reference_version\": \"HG19\"},\n]})\nfor item in r.json()[\"variants_assessments\"]:\n    a = item[\"assessments\"]\n    print(item[\"variant\"][\"position\"],\n          a[\"classification\"] if a else \"not classified\",\n          a and a[\"classified_by\"])\n","lang":"python"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["assessments"]}," is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["null"]}," for a variant your organization hasn't classified. Only your organization's own assessments are returned, never other labs' or public ones."]}]},"headings":[{"value":"Variant lookup","id":"variant-lookup","depth":1},{"value":"Resolve any notation","id":"resolve-any-notation","depth":2},{"value":"Get full annotation","id":"get-full-annotation","depth":2},{"value":"Check your lab's classifications, in bulk","id":"check-your-labs-classifications-in-bulk","depth":2}],"frontmatter":{"seo":{"title":"Variant lookup"}},"lastModified":"2026-09-30T21:14:32.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/recipes/variant-lookup","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}