Parses and tidies the DRAGEN FASTQC metrics file (fastqc_metrics.csv).
Splits into 8 per-section sub-tables. Setting flat_tidy_names = TRUE
gives flat dragenfqc_<section> tables rather than the concatenated form.
Super classes
nemo::Tool -> tidydragen::DragenTool -> DragenFqc
Public fields
flat_tidy_names(
logical(1))
drop the parser token so the 8 sub-tables are nameddragenfqc_<section>(see nemo::Tool).
Methods
Method new()
Create a new DragenFqc object.
Usage
DragenFqc$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().
Method parse_posbasecontent()
Parse headerless section,mate,metric,value fastqc_metrics.csv
into a long tibble.
Examples
cls <- DragenFqc; tool <- "dragenfqc"
indir <- system.file("extdata", tool, package = "tidydragen")
odir <- tempdir()
obj <- cls$new(indir)
obj$run(output_dir = odir, format = "parquet", input_id = "run1")
(lf <- list.files(odir, pattern = "dragenfqc_.*parquet", full.names = FALSE))
#> [1] "sampleA_dragenfqc_posbasecontent.parquet"
#> [2] "sampleA_dragenfqc_posbasemeanqual.parquet"
#> [3] "sampleA_dragenfqc_posqual.parquet"
#> [4] "sampleA_dragenfqc_readgc.parquet"
#> [5] "sampleA_dragenfqc_readgcqual.parquet"
#> [6] "sampleA_dragenfqc_readlen.parquet"
#> [7] "sampleA_dragenfqc_readmeanqual.parquet"
#> [8] "sampleA_dragenfqc_seqpos.parquet"
