One-step convenience function: parses variant IDs in any supported format
and re-formats them. By default, outputs the canonical format
("chr{N}:{pos}:{A2}:{A1}"). When a convention object is
provided, the output preserves the user's original format automatically.
Arguments
- ids
A character vector of variant IDs in any supported format.
- chr_prefix
Logical, whether to include "chr" prefix. Default TRUE. Ignored if
conventionis provided.- convention
Optional list from
detect_variant_conventionorattr(parse_variant_id(ids), "convention"). When provided, the output format is driven automatically by the detected convention.