View source: R/cdsfile2aafile.R
cdsfile2aafile | R Documentation |
This function translates a cds fasta file into an aa fasta file.
cdsfile2aafile(
infile,
outfile,
shorten = FALSE,
frame = 1,
framelist = NULL,
genetic.code = NULL
)
infile |
cds fasta file [mandatory] |
outfile |
aa fasta file [mandatory] |
shorten |
shorten all sequences to multiple of three [default: FALSE] |
frame |
indicates the first base of a the first codon [default: 1] |
framelist |
supply vector of frames for each entry [default: NULL] |
genetic.code |
The genetic code to use for the translation of codons into Amino Acid letters [default: NULL] |
aa fasta file
Kristian K Ullrich
cds2aa
## define file path
cdsfile <- system.file("fasta", "ath.cds.fasta.gz", package="CRBHits")
## create empty temp file
aafile <- tempfile()
## convert input CDS fasta file into AA fasta file
cdsfile2aafile(cdsfile, aafile)
aa <- Biostrings::readAAStringSet(aafile)
aa
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.