get_variants_from_locations | R Documentation |
Use GET
to query the ensembl REST API to
gather variants located on specific locations. The content is fetched as a
JSON and then translated as a data.frame, using toJSON
/!\ the column order is sometimes different.
get_variants_from_locations(locations, verbose = FALSE)
locations |
a vector of locations (eg: c("chr1:1000:10000", "chr2:10-100")) |
verbose |
if TRUE, will print progress messages (default: FALSE) |
a data.frame containing the following columns:
clinical_significance
start
consequence_type
alleles
seq_region_name
feature_type
source
strand
assembly_name
end
id
get_variants_from_locations(c("chr1:100:1000", "chr10:2004:12042"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.