write_fasta {jackalope} | R Documentation |
Write a ref_genome
or haplotypes
object to a FASTA file.
Description
This file produces 1 FASTA file for a ref_genome
object and one file
for each haplotype in a haplotypes
object.
Usage
write_fasta(
obj,
out_prefix,
compress = FALSE,
comp_method = "bgzip",
text_width = 80,
show_progress = FALSE,
n_threads = 1,
overwrite = FALSE
)
Arguments
obj |
A |
out_prefix |
Prefix for the output file. |
compress |
Logical specifying whether or not to compress output file, or
an integer specifying the level of compression, from 1 to 9.
If |
comp_method |
Character specifying which type of compression to use if any
is desired. Options include |
text_width |
The number of characters per line in the output fasta file.
Defaults to |
show_progress |
Logical for whether to show a progress bar.
Defaults to |
n_threads |
Number of threads to use if writing from a |
overwrite |
Logical for whether to overwrite existing file(s) of the
same name, if they exist. Defaults to |
Value
NULL