Pure.
An unresolved input is a row, not a gap
ClinGen answers an input it could not resolve with an object carrying no
@id, and an errorType/message instead. That becomes a row with
resolved = FALSE and the reason, rather than being dropped. Dropping it
would shift every later row onto the wrong variant, and would lose the reason
the input was rejected.
Examples
clingen_parse_allele(list(errorType = "IncorrectHgvsPosition"))
#> # A tibble: 1 × 12
#> resolved caid reason rsid clinvar_allele_id clinvar_variation_id
#> <lgl> <chr> <chr> <chr> <int> <int>
#> 1 FALSE NA IncorrectHgvsPosi… NA NA NA
#> # ℹ 6 more variables: myvariant_hg38 <chr>, chrom <chr>, pos <int>, ref <chr>,
#> # alt <chr>, title <chr>