.parallel_import_bw_files | R Documentation |
Import several bw files using parallel processing.
.parallel_import_bw_files(dir_path_to_bw_files)
dir_path_to_bw_files |
a character string denoting a valid path to a parent directory in which several bw files are stored in a sample wise directory. Along with a file name (without extension) name of the corresponding sample direcory will be used as name attribute. |
This function uses furrr::future_map()
to import the bw files. Following code is recommended to activate the parallel processing.
future::plan(future::multisession(), workers = 50)
.parallel_import_bw_files("path/do/bw/files)
future::plan(future::sequential())
Number of available threads/workers can be identified by future::availableWorkers()
and
future::availableCores()
.
a list of GRanges object. Each GRanges object is an output of the function rtracklayer::import.bw()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.