gather_files | R Documentation |
Recursively find peak/picard files stored within subdirectories and import them as a list of GRanges objects.
gather_files(
dir,
type = "peaks.stringent",
nfcore_cutandrun = FALSE,
return_paths = FALSE,
rbind_list = FALSE,
workers = check_workers(),
verbose = TRUE
)
dir |
Directory to search within. |
type |
File type to search for. Options include:
|
nfcore_cutandrun |
Whether the files were generated by the
nf-core/cutandrun Nextflow pipeline.
If |
return_paths |
Return only the file paths without actually reading them in as GRanges. |
rbind_list |
Bind all objects into one. |
workers |
Number of cores to parallelise across
(in applicable functions).
If |
verbose |
Print messages. |
For "peaks.stringent" files called with SEACR, column names will be automatically added:
total_signal : Total signal contained within denoted coordinates.
max_signalMaximum bedgraph signal attained at any base pair within denoted coordinates.
max_signal_region Region representing the farthest upstream and farthest downstream bases within the denoted coordinates that are represented by the maximum bedgraph signal.
A named list of GRanges objects.
#### Make example files ####
save_paths <- EpiCompare::write_example_peaks()
dir <- unique(dirname(save_paths))
#### Gather/import files ####
peaks <- EpiCompare::gather_files(dir=dir,
type="peaks.narrow",
workers = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.