split_by_celltype_chromosome: Split Per-Cell Type Compiled File Data into Per Chromosome

Description Usage Arguments Details Value Progress updates Examples

View source: R/split_by_celltype_chromosome.R

Description

Split Per-Cell Type Compiled File Data into Per Chromosome

Usage

1
2
3
4
5
6
split_by_celltype_chromosome(
  celltypes = list(human = c("HAP1", "HeLa", "GM12878", "K562", "Asynchronous",
    "Nocadazole"), mouse = c("MEF", "Patski")),
  chromosomes = 1:25,
  path = "compiledData"
)

Arguments

celltypes

A named list of character vectors.

chromosomes

Integer vector of chromosomes to be considered.

path

The folder where input files are located and where output files are written.

Details

This function operates on files produces by split_by_celltype.

Value

A named list of the same structure as celltypes but where the character string are pathnames to files produced.

Progress updates

This function signals progressr::progression updates. To visualize, or in other ways render, progress information, wrap the call inside a progressr::with_progress call.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
progressr::with_progress({
  files <- TopDomStudy::split_by_celltype_chromosome(
                celltypes=list(human="HAP1"), chromosomes=c(12,16,22),
                path="compiledData")
})
print(files)
# $human
# $human$HAP1
#                                      chr=12 
# "compiledData/human,HAP1,unique,chr=12.rds" 
#                                      chr=16 
# "compiledData/human,HAP1,unique,chr=16.rds" 
#                                      chr=22 
# "compiledData/human,HAP1,unique,chr=22.rds"

## End(Not run)

HenrikBengtsson/TopDomStudy documentation built on May 14, 2021, 1:49 p.m.