View source: R/prep_scATAC_seurat.R
| prep_scATAC_seurat | R Documentation |
Prepare 10x scATAC data from a Seurat/Signac object for cinaR.
prep_scATAC_seurat(
object,
assay = NULL,
slot = "counts",
sample.col,
group.col,
cluster.col = NULL,
peak.bed = NULL,
min.cells = 20,
verbose = TRUE
)
object |
Seurat object containing an ATAC assay (typically "peaks"). |
assay |
assay name to use; defaults to Seurat::DefaultAssay(object). |
slot |
assay slot to pull counts from (default "counts"). |
sample.col |
column name in object@meta.data indicating biological replicate. |
group.col |
column name in object@meta.data indicating condition/group. |
cluster.col |
optional column name for cell type/cluster. |
peak.bed |
optional data.frame with CHR/START/STOP columns for peaks. |
min.cells |
minimum number of cells required per sample (and per cluster if used). |
verbose |
logical, prints informative messages. |
list with elements 'bed', 'contrasts', and 'group.info', or a named list of such lists when cluster.col is provided.
## Not run:
prep <- prep_scATAC_seurat(seurat_obj,
sample.col = "sample",
group.col = "group",
assay = "peaks")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.