call_peaks | R Documentation |
Call peaks from a bedGraph or bigWig file using multiple methods.
By default, it automatically infers a reasonable
cutoff
threshold as well.
Note :
MACS3/MACSr is not currently compatible with Windows
(see here
for details).
call_peaks(
bedgraph_path,
method = c("MACSr", "SEACR"),
cutoff = NULL,
minlen = 200L,
maxgap = 30L,
call_summits = TRUE,
trackline = TRUE,
log = TRUE,
norm = TRUE,
stringent = TRUE,
outdir = tempdir(),
outputfile = paste0(method[[1]], ".peaks.bed"),
return_path = FALSE,
nThread = 1,
verbose = TRUE
)
bedgraph_path |
Path to bedGraph file. Can instead provide a bigWig file, but this will first be converted to bedGraph format, which can take some time if trying to convert data from across the entire genome. |
method |
Method to call peaks with: |
cutoff |
|
minlen |
minimum length of peak, better to set it as d value. DEFAULT: 200", default = 200. |
maxgap |
maximum gap between significant points in a peak, better to set it as tag size. DEFAULT: 30", default = 30. |
call_summits |
If set, MACS will use a more sophisticated approach to find all summits in each enriched peak region DEFAULT: False",default=False. |
trackline |
Tells MACS not to include trackline with bedGraph files. The trackline is used by UCSC for the options for display. |
log |
Whether to capture logs. |
norm |
Field 3: "norm" (default: |
stringent |
Field 4:"relaxed" ( |
outdir |
Directory to store |
outputfile |
Name of the peak output file (stored in BED format). |
return_path |
Whether to return the path to the saved peak file, or the peak data itself as a GRanges object. |
nThread |
When |
verbose |
Print messages. |
GRanges or path to save peaks file.
files <- example_bg_bw()
peaks <- PeakyFinders::call_peaks(bedgraph_path = files$bedgraph,
method="SEACR")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.