Compute TF footprints around motif positions
get_footprints.RdCompute TF footprints around motif positions
Usage
# S3 method for class 'MarchRProject'
get_footprints(
proj,
peak_annotation = NULL,
positions = NULL,
group_by = "clusters",
use_groups = NULL,
flank = 250L,
min_cells = 25L,
n_top = NULL,
norm_method = c("subtract", "divide", "none"),
dataset_name = NULL,
bsgenome = NULL,
min_chrom_distance = 50L,
verbose = getOption("MarchR.verbose", FALSE),
...
)Arguments
- proj
(MarchRProject)
- peak_annotation
(character or NULL) Annotation name; positions retrieved via get_positions(). Mutually exclusive with
positions.- positions
(GRangesList or NULL) Explicit motif positions.
- group_by
(character) Group_coverages key. Default "clusters".
- use_groups
(character or NULL) Subset by group name. Default NULL.
- flank
(integer) Flanking bp on each side of motif center. Default 250L.
- min_cells
(integer) Min cells per replicate. Default 25L.
- n_top
(integer or NULL) Top-N positions by score per motif. Default NULL.
- norm_method
(character) "subtract" (default), "divide", or "none".
- dataset_name
(character or NULL) ATAC dataset. NULL auto-selects.
- bsgenome
(BSgenome or DNAStringSet or NULL) Reference genome for k-mer position frequency computation. NULL resolves from proj$genome$sequence. Ignored when norm_method = "none".
- min_chrom_distance
(integer) bp from chrom edge required beyond flank. Default 50L.
- verbose
(logical) Print progress messages. Default
getOption("MarchR.verbose", FALSE).- ...
Unused.
Value
SummarizedExperiment with one assay per motif, two stacked channels (footprint + bias) in rows, pseudobulk replicates in columns.
Details
Bias-corrected TF footprint at single-bp resolution. The
subtract and divide norm methods require add_kmer_bias() to have
been run for the same group_by.