| read_fasta | R Documentation |
read_fasta reads sequences in FASTA format in named character
vectors. write_fasta writes sequences stored as named character
vectors into FASTA file.
read_fasta(file)
write_fasta(x, file)
file |
FASTA format file |
x |
Named characters |
Names of sequences to be written do not have to begin with the greater-than
sign, as they are appended by the function when writing. Similarly, the
read_fasta removes the leading greater-than sign of sequence names.
For read_fasta, a named character vector of FASTA sequences.
For write_fasta, the side effect is used and no value is returned.
Jitao David Zhang <jitao_david.zhang@roche.com>
tmpfile <- tempfile()
test.seq <- c("mySeq1"="ATGCG", "mySeq2 correct"="TTGTTCGACGT")
write_fasta(test.seq, tmpfile)
read_fasta(tmpfile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.