Peach file parsing and manipulation.
Super class
nemo::Tool -> Peach
Methods
Method new()
Create a new Peach object.
Usage
Peach$new(path = NULL, files_tbl = NULL)Arguments
path(
character(1))
Output directory of tool. Iffiles_tblis supplied, this is ignored.files_tbl(
tibble(n))
Tibble of files fromnemo::list_files_dir().
Examples
cls <- Peach; tool <- "peach"
indir <- system.file("extdata/oa", tool, package = "tidywigits")
odir <- tempdir()
id <- paste0(tool, "_run1")
obj <- cls$new(indir)
obj$run(output_dir = odir, format = "parquet", input_id = id)
(lf <- list.files(odir, pattern = paste0(tool, "_.*parquet"), full.names = FALSE))
#> [1] "sample1_peach_events.parquet"
#> [2] "sample1_peach_geneevents.parquet"
#> [3] "sample1_peach_haplotypesall.parquet"
#> [4] "sample1_peach_haplotypesbest.parquet"
#> [5] "sample1_peach_qc.parquet"
