dot-parallel_import_bw_files: Import several bw files using parallel processing.

.parallel_import_bw_filesR Documentation

Import several bw files using parallel processing.

Description

Import several bw files using parallel processing.

Usage

.parallel_import_bw_files(dir_path_to_bw_files)

Arguments

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.

Details

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().

Value

a list of GRanges object. Each GRanges object is an output of the function rtracklayer::import.bw().


cparsania/parcutils documentation built on Oct. 27, 2024, 4:55 a.m.