R/msigdbr-species.R

Defines functions msigdbr_species

Documented in msigdbr_species

#' List the species available in the msigdbr package
#'
#' @return A data frame of the available species.
#'
#' @importFrom babelgene species
#' @importFrom dplyr arrange distinct select
#'
#' @export
msigdbr_species <- function() {
  babelgene::species() |>
    as_tibble() |>
    select(
      species_name = "scientific_name",
      species_common_name = "common_name"
    ) |>
    rbind(c("Homo sapiens", "human")) |>
    distinct() |>
    arrange(.data$species_name)
}

Try the msigdbr package in your browser

Any scripts or data that you put into this service are public.

msigdbr documentation built on April 15, 2025, 1:28 a.m.