openvar / vv_hgvs

Python library to parse, format, validate, normalize, and map sequence variants. `pip install hgvs`
https://hgvs.readthedocs.io/
Apache License 2.0
6 stars 4 forks source link

Expaded repeat syntax checker #10

Open Peter-J-Freeman opened 5 months ago

Peter-J-Freeman commented 5 months ago

Finally the HGVS committee have agreed on the allele syntax.

We can now revisit this code curently hashes out

                    # Format expanded repeat syntax
                    """
                    Waiting for HGVS nomenclature changes
                    """
                    # try:
                    #     toskip = expanded_repeats.convert_tandem(my_variant.quibble, my_variant.primary_assembly, "all")
                    # except Exception as e:
                    #     print(e)
                    # if toskip:
                    #     continue

A request came in from George Riley during a conversation. Can we also provide a function that maps from the old style expanded repeat syntax to the new style?