write_rad | R Documentation |
When dataset is a tidy data frame, the function provides a
fast way to write a radiator .rad
file.
The function uses write_fst
with a compression level of 85,
that work well with RADseq dataset.
When the object is a CoreArray Genomic Data Structure
(GDS) file system, the function
set filters (variants and samples) based on the info found in the file and
close the connection with the GDS file.
Used internally in radiator and assigner and might be of interest for users.
write_rad(
data,
path = NULL,
filename = NULL,
tsv = FALSE,
internal = FALSE,
append = FALSE,
col.names = TRUE,
write.message = "standard",
verbose = FALSE
)
data |
An object in the global environment: tidy data frame or GDS connection file |
path |
(optional) For tidy data frame, the path to write the data on disk.
Default: |
filename |
(optional) Name of the file (when using tsv files).
Default: |
tsv |
(optinal, logical) To trigger saving using |
internal |
(optional, logical) This is used inside radiator internal code and it stops
from writting the file.
Default: |
append |
(optional, logical) If |
col.names |
(optional, logical) Write columns names at the top of the file?
Must be either TRUE or FALSE.
Default: |
write.message |
(optional, character) Print a message in the console
after writting file.
With |
verbose |
(optional, logical) |
A file written in the working directory or nothing if it's a GDS connection file.
Thierry Gosselin thierrygosselin@icloud.com
## Not run:
require(SeqArray)
radiator::write_rad(data = tidy.data, path = "data.shark.rad")
radiator::write_rad(data = gds.object)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.