R/OF2Orthologs.R

Defines functions OF2Orthologs

OF2Orthologs <- function(orthologs_file) {
        
        if (!fs::file_exists(orthologs_file))
                stop("Please provide a valid path to the orthologs file generated by Orthofinder2.", call. = FALSE)
        
        suppressMessages(orthologs <- readr::read_tsv(orthologs_file, col_names = TRUE))
        
        return(orthologs)
}
HajkD/orthologr documentation built on Oct. 13, 2023, 12:11 a.m.