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() |>
    tibble::as_tibble() |>
    dplyr::select(
      species_name = "scientific_name",
      species_common_name = "common_name"
    ) |>
    rbind(c("Homo sapiens", "human")) |>
    dplyr::distinct() |>
    dplyr::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 June 8, 2025, 11:39 a.m.