TENxFileList-class | R Documentation |
This class was designed to mainly handle tarballs from
10X Genomics. The typical file extension for these tarballs is .tar.gz
.
## S4 method for signature 'TENxFileList'
path(object, ...)
## S4 method for signature 'TENxFileList'
decompress(manager, con, ...)
## S4 method for signature 'TENxFileList,ANY,ANY'
import(con, format, text, ...)
## S4 method for signature 'TENxFileList'
metadata(x, ...)
object |
An object containing paths. Even though it will typically contain
a single path, |
... |
Additional arguments (not used) |
manager |
A |
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 |
x |
An object of class |
These tarballs usually contain three files:
matrix.mtx.gz
- the counts matrix
features.tsv.gz
- row metadata usually represented as rowData
barcodes.tsv.gz
- column names corresponding to cell barcode
identifiers
Note that version '2' includes genes.tsv.gz
instead of features.tsv.gz
in
version '3'.
An additional ref
argument can be provided when the file contains
multiple feature_type
in the file or "Type" in the rowData
. By default,
the first type reported in table()
is set as the mainExpName
in the
SingleCellExperiment
object.
A TENxFileList
class object
path(TENxFileList)
: Obtain file paths for all files in the object
as a vector
decompress(TENxFileList)
: An intermediate method for decompressing
(via untar) the contents of a .tar.gz
file list
import(con = TENxFileList, format = ANY, text = ANY)
: Recursively import files within a
TENxFileList
metadata(TENxFileList)
: metadata
method for TENxFileList
objects
listData
list() The data in list format
extension
character() A vector of file extensions for each file
compressed
logical(1) Whether the file is compressed as .tar.gz
version
character(1) The version number of the tarball usually either '2' or '3'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.