get_populations | R Documentation |
This function retrieves population-level information. The data is returned as
a tibble
where each row is a population of a given
species and the columns are metadata about each population. See below under
section Value for details about each column. The parameter ld_only
to
restrict populations returned to only populations with linkage disequilibrium
information.
get_populations(
species_name = "homo_sapiens",
ld_only = TRUE,
verbose = FALSE,
warnings = TRUE,
progress_bar = TRUE
)
species_name |
The species name, i.e., the scientific name, all letters
lowercase and space replaced by underscore. Examples: |
ld_only |
Whether to restrict populations returned to only populations with linkage disequilibrium data. |
verbose |
Whether to be verbose about the http requests and respective responses' status. |
warnings |
Whether to show warnings. |
progress_bar |
Whether to show a progress bar. |
A tibble
of 4 variables:
Ensembl species name: this is the name used internally
by Ensembl to uniquely identify a species by name. It is the scientific
name but formatted without capitalisation and spacing converted with an
underscore, e.g., 'homo_sapiens'
.
Population.
Description of the population.
Cohort sample size.
get_populations()
makes GET requests to
/info/variation/populations/:species.
# Get all human populations with linkage disequilibrium data
get_populations(species_name = 'homo_sapiens', ld_only = TRUE)
# Get all human populations
get_populations(species_name = 'homo_sapiens', ld_only = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.