TENxH5-class | R Documentation |
This class is designed to work with 10x Single Cell datasets. It was developed using the PBMC 3k 10X dataset from the CellRanger v2 pipeline.
## S4 method for signature 'TENxH5'
rowData(x, use.names = TRUE, ...)
## S4 method for signature 'TENxH5'
dim(x)
## S4 method for signature 'TENxH5'
dimnames(x)
## S4 method for signature 'TENxH5'
genome(x)
## S4 method for signature 'TENxH5'
rowRanges(x, ...)
## S4 method for signature 'TENxH5,ANY,ANY'
import(con, format, text, ...)
## S4 method for signature 'TENxH5'
show(object)
x |
A |
use.names |
For For |
... |
For For For other accessors, ignored. |
con |
The connection from which data is loaded or to which data is
saved. If this is a |
format |
The format of the output. If missing and |
text |
If |
object |
A |
The data version "3" mainly includes a "matrix" group and "interval"
information within the file. Version "2" data does not include
ranged-based information and has a different directory structure compared
to version "3". See the internal data.frame
: TENxIO:::h5.version.map
for
a map of fields and their corresponding file locations within the H5 file.
This map is used to create the rowData
structure from the file.
A TENxH5
class object
rowData(TENxH5)
: Generate the rowData ad hoc from a TENxH5 file
dim(TENxH5)
: Get the dimensions of the data as stored in the file
dimnames(TENxH5)
: Get the dimension names from the file
genome(TENxH5)
: Read genome string from file
rowRanges(TENxH5)
: Read interval data and represent as GRanges
import(con = TENxH5, format = ANY, text = ANY)
: Import TENxH5 data as a SingleCellExperiment; see section
below
show(TENxH5)
: Display a snapshot of the contents within a TENxH5 file
before import
version
character(1) There are currently two recognized versions associated with 10X data, either version "2" or "3". See details for more information.
group
character(1) The HDF5 group embedded within the file structure, this is usually either the "matrix" or "outs" group but other groups are supported as well.
ranges
character(1) The HDF5 internal folder location embedded within the file that points to the ranged data information, e.g., "/features/interval".
The import
method uses DelayedArray::TENxMatrix
to represent matrix
data. Generally, version 3 datasets contain associated genomic coordinates.
The associated feature data, as displayed by the rowData
method, is
queried for the "Type" column which will indicate that a splitAltExps
operation is appropriate. If a ref
input is provided to the constructor
function TENxH5
, it will be used as the main experiment; otherwise, the
most frequent category in the "Type" column will be used. For example,
the Multiome ATAC + Gene Expression feature data contains both 'Gene
Expression' and 'Peaks' labels in the "Type" column.
TENxH5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.