write_fasta {tidysq} | R Documentation |
Save sq to fasta file
Description
Writes sq
objects with their names to
a fasta file.
Usage
write_fasta(
x,
name,
file,
width = 80,
NA_letter = getOption("tidysq_NA_letter")
)
Arguments
x |
[ |
name |
[ |
file |
[ |
width |
[ |
NA_letter |
[ |
Details
Whenever a name has more letters than width
parameter, nothing
happens, as only sequences are split to fit within designated space.
Value
No value is returned.
See Also
Functions from output module:
as.character.sq()
,
as.matrix.sq()
,
as.sq()
,
export_sq()
Examples
## Not run:
sq_dna <- sq(c("ACTGCTG", "CTTAGA", "CCCT", "CTGAATGT"),
alphabet = "dna_bsc")
write_fasta(sq_dna,
c("bat", "cat", "rat", "elephant_swallowed_by_A_snake"),
"~/fasta_rubbish/example.fasta")
## End(Not run)
[Package tidysq version 1.1.3 Index]