
Call peaks on the kept cells, pooled or per group
call_peaks_sc.RdA native port of MACS3 callpeak --nomodel without a control track, one
call per group, as Signac's CallPeaks(group.by = ...) runs MACS. Against
MACS3 3.1.0 the peak coordinates, summits and pileups are exact and the
scores agree to MACS's printed precision. Pass the result as peaks to
add_atac_fragments_sc() or
load_atac_fragments() to count against it.
With a tabix index next to the fragment file (.tbi, which Cell Ranger
writes), the file is read one chromosome at a time and the sorted tags
wait in a scratch file (4 bytes per tag) between passes. Without an index
every tag is held at once while reading.
Usage
call_peaks_sc(
object,
fragments,
group_by = NULL,
combine = TRUE,
peak_params = params_atac_call_peaks(),
barcode_map = NULL,
max_mem_gb = NULL,
tmp_dir = NULL
)Arguments
- object
SingleCellsclass; its kept cells are pooled.- fragments
String. The fragment file.
- group_by
Optional string. obs column to call per level of (clusters, samples);
NULLpools all kept cells into one group,"all".- combine
Boolean. Merge overlapping peaks across groups into one set, with the groups each was called in.
FALSEreturns every group's peaks.- peak_params
List. Output of
params_atac_call_peaks().- barcode_map
Optional. Cell id to fragment barcode, where they differ.
- max_mem_gb
Optional numeric. Tag budget of the reading pass;
NULLreads one chromosome at a time.- tmp_dir
Optional string. Directory of the scratch file;
NULLfor the system temporary directory.