Write sequences in FASTA format

write_fasta(x, file, append = FALSE, line_length = 80, block_length = 10)

Arguments

x

a DNA, RNA or AA vector.

file

a path to a file or a connection.

append

a logical. If TRUE append the data to the file. If FALSE (default), overwrite the file.

line_length

length (in number of character) of one line (excluding spaces separating blocks). Use Inf to avoid line breaks.

block_length

length (in number of character) of one block. Use the same value as line_length or Inf to avoid block separation.

See also

Other input/output operations: read_fasta()