This class is a minimal class to represent Xenium metadata.
It is dedicated to importing experiment.xenium metadata files. It uses
the jsonlite package to import the metadata.
Usage
XeniumFile(resource)
# S4 method for class 'XeniumFile,ANY,ANY'
import(con, format, text, ...)Arguments
- resource
character(1)The path to the Xenium metadata file.- con
The connection from which data is loaded or to which data is saved. If this is a
charactervector, it is assumed to be a file name and a corresponding file connection is created and then closed after exporting the object. If it is a BiocFile derivative, the data is loaded from or saved to the underlying resource. If missing, the function will return the output as a character vector, rather than writing to a connection.- format
The format of the output. If missing and
conis a file name, the format is derived from the file extension. This argument is unnecessary whenconis a derivative of BiocFile.- text
If
conis missing, this can be a character vector directly providing the string data to import.- ...
Parameters to pass to the format-specific method.
Examples
showClass("XeniumFile")
#> Class "XeniumFile" [package "XeniumIO"]
#>
#> Slots:
#>
#> Name: extension colidx rowidx
#> Class: character integer integer
#>
#> Name: remote compressed resource
#> Class: logical logical character_OR_connection
#>
#> Extends:
#> Class "TENxFile", directly
#> Class "BiocFile", by class "TENxFile", distance 2