Constructs a molpath_parsed object representing the result of parsing a
single data source. This serves as an intermediate representation before
data is integrated into a molpath_db.
Arguments
- data
A tibble (or data frame) containing the parsed data.
- source_type
A character string identifying the source type (e.g.,
"vcf","xml_report","pdf_report","excel","csv").- source_file
A character string with the path to the source file.
- parse_date
A
POSIXcttimestamp of when the data was parsed. Defaults to the current time.
Examples
parsed <- new_molpath_parsed(
data = tibble::tibble(gene = "BRAF", variant = "V600E"),
source_type = "vcf",
source_file = "sample1.vcf"
)
parsed
#>
#> ── molpath_parsed ──────────────────────────────────────────────────────────────
#> ℹ Source type: "vcf"
#> ℹ Source file: sample1.vcf
#> ℹ Parsed: "2026-04-17 17:35:49"
#> ℹ Data: 1 row x 2 columns
#> ℹ Columns: gene and variant
#> ℹ Completeness: "100%"