Skip to contents

Processes multiple TimeMetricsFile objects.

Usage

time_metrics_process(x, id = seq_len(length(x)))

Arguments

x

Atomic vector with one or more TimeMetricsFile objects.

id

ID for each input, which is used to disambiguate files generated from same samples. Default: index from 1 to length of x.

Value

tibble with the following columns:

  • Step: DRAGEN step

  • Time: time in HH:MM

Examples

p <- system.file("extdata/wgs/SEQC-II.time_metrics.csv.gz", package = "dracarys")
x <- TimeMetricsFile$new(p)
(tm <- time_metrics_process(c(x, x), id = c("run1", "run2")))
#> # A tibble: 2 × 20
#>   ID    `Total Runtime` `Loading Reference` `Aligning Reads` `Duplicate Marking`
#>   <chr> <chr>           <chr>               <chr>            <chr>              
#> 1 run1  04:10           00:01               00:35            00:01              
#> 2 run2  04:10           00:01               00:35            00:01              
#> # ℹ 15 more variables: `Sorting and Marking Duplicates` <chr>,
#> #   `DRAGStr Calibration` <chr>, `Saving Map/Align Output` <chr>,
#> #   `Partial Reconfiguration` <chr>, `Variant Calling` <chr>,
#> #   `Calculating Target Counts` <chr>, `Correcting GC Bias` <chr>,
#> #   `Normalizing Case Sample` <chr>, `Performing Segmentation` <chr>,
#> #   `Generating Somatic Model Input` <chr>, `Fitting Somatic Model` <chr>,
#> #   `Generating CNV Calls` <chr>, `Generating CNV Track Files` <chr>, …