Parses files with no column names.
Arguments
- fpath
(
character(1)
)
File path.- schema
(
tibble()
)
Schema tibble with version and schema list-col.- delim
(
character(1)
)
File delimiter.- ...
Passed on to
readr::read_delim
.
Examples
path <- system.file("extdata/tool1", package = "nemo")
x <- Tool$new("tool1", pkg = "nemo", path = path)
schema <- x$raw_schemas_all |>
dplyr::filter(.data$name == "table3") |>
dplyr::select("version", "schema")
fpath <- file.path(path, "latest", "sampleA.tool1.table3.tsv")
(d <- parse_file_nohead(fpath, schema))
#> # A tibble: 5 × 2
#> Variable Value
#> <chr> <chr>
#> 1 SampleID sampleA
#> 2 QCStatus Pass
#> 3 TotalReads 10000
#> 4 MappedReads 9500
#> 5 UnmappedReads 500