xread | R Documentation |
This function reads an R object from a file saved in a format specific to the 'qs' package, which is designed for quick and efficient compression and decompression of R objects. It also times the read operation, providing feedback on the duration of the operation.
xread(
file,
nthreads = if (file.size(file) < 1e+07) 1 else 4,
loadParamsAndAllGenes = TRUE,
overwriteParams = FALSE,
overwriteAllGenes = FALSE,
set_m = TRUE,
...
)
file |
A character string specifying the path to the file where the R object is saved. |
nthreads |
The number of threads to use when reading the object, defaults to 4. |
loadParamsAndAllGenes |
Logical; if TRUE and if the object is a Seurat object, additional parameters are loaded from within it. |
overwriteParams |
Logical; if TRUE and if the object is a Seurat object, the parameters are overwritten. |
overwriteAllGenes |
Logical; if TRUE and if the object is a Seurat object, the all genes are overwritten. |
set_m |
Logical; if TRUE, the variable 'm', a list of @meta.data colnames, is assigned to the global environment. |
... |
Further arguments passed on to the 'qs::qread' function. |
The R object that was saved in the specified file.
The function uses the 'qs' package for fast and efficient deserialization of objects and includes a timing feature from the 'tictoc' package.
qread
for the underlying read function used.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.