Description Usage Arguments Details Value Progress updates Parallel processing Examples
View source: R/split_by_celltype.R
Split Per-Organism Compiled File Data into Subsets of Cell Types
1 2 3 4 5 | split_by_celltype(
celltypes = list(human = c("HAP1", "HeLa", "GM12878", "K562", "Asynchronous",
"Nocadazole"), mouse = c("MEF", "Patski")),
path = "compiledData"
)
|
celltypes |
A named list of character vectors. |
path |
The folder where input files are located and where output files are written. |
This function operates on files produces by compile_by_organism.
A named list of the same structure as celltypes
but
where the character string are pathnames to files produced.
This function signals progressr::progression updates. To visualize, or in other ways render, progress information, wrap the call inside a progressr::with_progress call.
This function supports processing of (celltype):s in parallel via the
future framework.
For example, setting future::plan("multisession")
will parallelize
on the local machine.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
progressr::with_progress({
files <- TopDomStudy::split_by_celltype(celltypes=list(human="HAP1"),
path="compiledData")
})
print(files)
# $human
# HAP1
# "compiledData/human,HAP1,unique.rds"
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.