R/mdat_read_list.R

Defines functions read_list

Documented in read_list

#' Read lists for background or foreground sets of species
#'
#' This function reads in the foreground/background sets (single column .tsv file)
#' @param set of species (foreground or background)
#' @export
#' @examples
#' read_list("foreground.tsv"))

read_list <- function(species_file){

    species_set <- read.csv(species_file, header=TRUE, stringsAsFactors=FALSE, sep="\t")
    return(species_set[,1])
    }
nickilott/MDAT documentation built on Sept. 7, 2020, 7:03 a.m.