View source: R/utils_clinvar.R
| clinvar_variants | R Documentation |
Queries the NCBI ClinVar database via E-utilities for all variants
associated with a gene, and returns those with protein-level amino acid
changes as a named list of A3Variant objects.
clinvar_variants(
gene,
significance = c("pathogenic", "likely_pathogenic"),
max_variants = 500L,
esearch_url = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi",
esummary_url = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi",
batch_size = 500L,
verbosity = 1L
)
gene |
Character scalar: HGNC gene symbol, e.g. |
significance |
Character vector: Clinical significance filter. Any
combination of |
max_variants |
Integer scalar: Maximum number of ClinVar records to
fetch after filtering. Defaults to |
esearch_url |
Character scalar: NCBI E-utilities esearch endpoint. |
esummary_url |
Character scalar: NCBI E-utilities esummary endpoint. |
batch_size |
Integer scalar: Number of UIDs per esummary request. NCBI recommends no more than 500 per request. |
verbosity |
Integer scalar: Verbosity level. |
Variants without a parseable protein change (intronic, regulatory, etc.) are silently skipped.
Named list of A3Variant objects. Names use {from}{position}{to}
notation (e.g. "R406W"), with a numeric suffix to disambiguate
duplicates.
EDG
# Requires internet connection and fetches data from ClinVar.
## Not run:
# Pathogenic and likely pathogenic variants (default)
mapt_variants <- clinvar_variants("MAPT")
# All variants regardless of significance
mapt_all <- clinvar_variants("MAPT", significance = NULL)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.