View source: R/write.proteome.R
write.proteome | R Documentation |
This function takes a proteome (in data.table notation) as returned by
read.proteome
and saves it to your hard drive.
write.proteome(proteome, file.name, nbchar = 80, open = "w", as.string = TRUE)
proteome |
a data.table object storing amino acid sequences in the first column
and gene ids in the second column. See |
file.name |
a character string specifying the name of the fasta output file. |
nbchar |
number of characters per line. |
open |
mode to open the output file, you can choose from "w" to write into a new file, or "a" to append at the end of an already existing file. |
as.string |
when set to TRUE sequences are in the form of strings instead of vectors of single characters. |
Hajk-Georg Drost
## Not run:
# read an example proteome
Ath.proteome <- read.proteome(
system.file('seqs/ortho_thal_aa.fasta', package = 'orthologr'),
format = "fasta")
# use the write.proteome function to store it on your hard drive
write.proteome(Ath.proteome, "test_proteome.fasta")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.