powered by
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 )
list with elements `bed`, `contrasts`, and `group.info`, or a named list of such lists when cluster.col is provided.
Seurat object containing an ATAC assay (typically "peaks").
assay name to use; defaults to Seurat::DefaultAssay(object).
assay slot to pull counts from (default "counts").
column name in object@meta.data indicating biological replicate.
column name in object@meta.data indicating condition/group.
optional column name for cell type/cluster.
optional data.frame with CHR/START/STOP columns for peaks.
minimum number of cells required per sample (and per cluster if used).
logical, prints informative messages.
if (FALSE) { prep <- prep_scATAC_seurat(seurat_obj, sample.col = "sample", group.col = "group", assay = "peaks") }
Run the code above in your browser using DataLab