read.dnds.tbl: Import a dNdS table generated with 'dNdS'

View source: R/read.dnds.tbl.R

read.dnds.tblR Documentation

Import a dNdS table generated with dNdS

Description

This function reads a file that stores a dnds table generated with dNdS.

Usage

read.dnds.tbl(file)

Arguments

file

file path to dNdS table with ; separated columns.

Author(s)

Hajk-Georg Drost

Examples

## Not run:  
# generate dNdS table
dNdS_tbl <- dNdS(query_file      = system.file('seqs/ortho_thal_cds.fasta', package = 'orthologr'),
subject_file    = system.file('seqs/ortho_lyra_cds.fasta', package = 'orthologr'),
ortho_detection = "RBH", 
aa_aln_type     = "pairwise",
aa_aln_tool     = "NW", 
codon_aln_tool  = "pal2nal", 
dnds_est.method = "Comeron", 
comp_cores      = 1 )

# save dNdS table as ';' column separated file
utils::write.table(
dNdS_tbl, 
file.path(tempdir(), "dNdS_tbl.csv"), sep = ";", 
col.names = TRUE,
row.names = FALSE,
quote     = FALSE )

# import dNdS table into R session
dNdS_tbl_import <- read.dnds.tbl(file.path(tempdir(), "dNdS_tbl.csv"))

## End(Not run)

HajkD/orthologr documentation built on Oct. 13, 2023, 12:11 a.m.