View source: R/TENxFile-class.R
TENxFile | R Documentation |
The TENxFile
constructor function serves as the
auto-recognizer function for 10X files. It can import several different
file extensions, namely:
* H5 - on-disk HDF5 * MTX - matrix market * .tar.gz - compressed tarball
TENxFile(resource, extension, ...)
resource |
character(1) The path to the file |
extension |
character(1) The file extension for the given resource. It
can usually be obtained from the file path. An override can be provided
especially for |
... |
Additional inputs to the low level class generator functions |
Note that the example below includes the use of a large ~ 4 GB
ExperimentHub
resource obtained from the 10X website.
A subclass of TENxFile
according to the input file extension
if (interactive()) {
## from ExperimentHub
hub <- ExperimentHub::ExperimentHub()
fname <- hub[["EH1039"]]
TENxFile(fname, extension = "h5", group = "mm10", version = "2")
TENxFile(fname, extension = "h5", group = "mm10", version = "2") |>
metadata()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.