Convert a raw PMO list into a PortableMicrohaplotypeObject
pmo_list_to_r6.RdWraps a plain nested PMO list (1-based ids, as produced by the filter
functions or read_pmo_raw()) into a PortableMicrohaplotypeObject R6
instance. Ids are preserved (the round-trip applies the write offset and the
read offset, which cancel out).
Examples
p <- read_pmo(
system.file("extdata", "example_full_pmo.json.gz", package = "pmotoolsr"))
filtered <- pmo_filter_by_specimen_ids(p, 1L)
obj <- pmo_list_to_r6(filtered)