read_rad | R Documentation |
.gds, .rad, .gds.rad, .arrow.parquet
.Fast read of .gds, .rad, .gds.rad, .arrow.parquet
files.
The function uses read_parquet
or
CoreArray Genomic Data Structure (GDS)
file system.
Used internally in radiator and assigner and might be of interest for users.
read_rad(
data,
columns = NULL,
allow.dup = FALSE,
check = TRUE,
verbose = FALSE
)
data |
A file in the working directory ending with .arrow.parquet or .gds, and produced by radiator, assigner or grur. |
columns |
(optional) For arrow.parquet file.
Column names to read.
The default is to read all all columns.
Default: |
allow.dup |
(optional, logical) To allow the opening of a GDS file with
read-only mode when it has been opened in the same R session.
Default: |
check |
(optional, logical) Verify that GDS number of samples and markers
match.
Default: |
verbose |
(optional, logical) |
For GDS file system, read_rad will open the GDS connection file set the filters (variants and samples) based on the info found in the file.
A radiator tidy data frame or GDS object (with read/write permissions) in the global environment.
Thierry Gosselin thierrygosselin@icloud.com
## Not run:
require(SeqArray)
shark <- radiator::read_rad(data = "data.shark.gds")
turtle <- radiator::read_rad(data = "data.turtle.arrow.parquet")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.