pirl-unc / mhcgnomes

Parsing MHC nomenclature in the wild
Apache License 2.0
16 stars 3 forks source link

Move option for converting species -> species group to Parser #1

Open iskandr opened 3 years ago

iskandr commented 3 years ago

Currently the equivalence of species (e.g. "Rano") and species groups ("RT-1") is treated superficially as an optional argument to to_string and compact_string methods, which rolls up the sequence representation for all species in a group.

Based on conversations with some of the IPD / comparative MHC committee folks, it seems like it's not actually valid for the minor species in a group (e.g. "Rara" for "RT-1" or "Caru" for "DLA") to auto-convert the allele names upwards.

So, we need a different option to convert only the major species in each group. Probably this should be part of the Parser instead of an option for string representation.