R/example_phenos.R

Defines functions example_phenos

Documented in example_phenos

#' @describeIn main main
#' Example phenotypes dataframe
#'
#' Create a minimal example of a phenos dataframe.
#' @param i Indices of HPO IDs to use.
#' @returns phenotype data.table
#'
#' @export
#' @importFrom data.table data.table
#' @examples
#' phenos <- example_phenos()
example_phenos <- function(i=seq(10),
                           hpo=get_hpo()){
  data.table::data.table(hpo_id=grep("^HP:",hpo@terms, value = TRUE)[i])
}
neurogenomics/HPOExplorer documentation built on July 17, 2024, 3:12 p.m.