ihmwg / python-ihm

Python package for handling IHM mmCIF and BinaryCIF files
MIT License
14 stars 7 forks source link

uniprot fasta parsing is sometimes broken #57

Closed danpf closed 3 years ago

danpf commented 3 years ago

Hello, it would appear that some uniprot ids are broken for fasta parsing:

Traceback (most recent call last):
  File "ihm_fanc.py", line 724, in <module>
    main()
  File "ihm_fanc.py", line 136, in main
    fancB_seq = ihm.reference.UniProtSequence.from_accession("B9A0U5")
  File "/home/danpf/git/python-ihm/ihm/reference.py", line 96, in from_accession
    raise ValueError("Cannot parse UniProt header %s" % header)
ValueError: Cannot parse UniProt header >tr|B9A0U5|B9A0U5_CHICK Fanconi anemia, complementation group B OS=Gallus gallus OX=9031 GN=FANCB PE=2 SV=1