Skip to contents

Peach file parsing and manipulation.

Super class

nemo::Tool -> Peach

Methods

Public methods

Inherited methods


Method new()

Create a new Peach object.

Usage

Peach$new(path = NULL, files_tbl = NULL)

Arguments

path

(character(1))
Output directory of tool. If files_tbl is supplied, this is ignored.

files_tbl

(tibble(n))
Tibble of files from nemo::list_files_dir().

Examples

cls <- Peach
indir <- system.file("extdata/oa", package = "tidywigits")
odir <- tempdir()
id <- "peach_run1"
obj <- cls$new(indir)
obj$run(output_dir = odir, format = "parquet", input_id = id)
(lf <- list.files(odir, pattern = "peach_.*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"