CreateChromatinAssay | R Documentation |
Create a ChromatinAssay
object from a count matrix or
normalized data matrix. The expected format of the input matrix is features x
cells. A set of genomic ranges must be supplied along with the matrix, with
the length of the ranges equal to the number of rows in the matrix. If a set
of genomic ranges are not supplied, they will be extracted from the
row names of the matrix.
CreateChromatinAssay(
counts,
data,
min.cells = 0,
min.features = 0,
max.cells = NULL,
ranges = NULL,
motifs = NULL,
fragments = NULL,
genome = NULL,
annotation = NULL,
bias = NULL,
positionEnrichment = NULL,
sep = c("-", "-"),
validate.fragments = TRUE,
verbose = TRUE,
...
)
counts |
Unnormalized data (raw counts) |
data |
Normalized data; if provided, do not pass counts |
min.cells |
Include features detected in at least this many cells. Will subset the counts matrix as well. To reintroduce excluded features, create a new object with a lower cutoff. |
min.features |
Include cells where at least this many features are detected. |
max.cells |
Include features detected in less than this many cells. Will subset the counts matrix as well. To reintroduce excluded features, create a new object with a higher cutoff. This can be useful for chromatin assays where certain artefactual loci accumulate reads in all cells. A percentage cutoff can also be set using 'q' followed by the percentage of cells, for example 'q90' will discard features detected in 90 percent of cells. If NULL (default), do not apply any maximum value. |
ranges |
A set of |
motifs |
A Motif object (not required) |
fragments |
Path to a tabix-indexed fragments file for the data
contained in the input matrix. If multiple fragment files are required,
you can add additional |
genome |
A |
annotation |
A set of |
bias |
A Tn5 integration bias matrix |
positionEnrichment |
A named list of matrices containing positional signal enrichment information for each cell. Should be a cell x position matrix, centered on an element of interest (for example, TSS sites). |
sep |
Separators to use for strings encoding genomic coordinates.
First element is used to separate the chromosome from the coordinates,
second element is used to separate the start from end coordinate. Only
used if |
validate.fragments |
Check that cells in the assay are present in the fragment file. |
verbose |
Display messages |
... |
Additional arguments passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.