The information present in the delnodes.dmp and merged.dmp files should be (optionaly?) leveraged by the ncbi constructor to:
redirect old taxid to the new Node
raise an informative error when trying to access a deleted Node
Test cases:
2923454 should point to 89248 (Equus quagga)
Any taxid in delnodes should raise anerror
This could be implemented by introducing new BaseNode subclasses.
The Taxonomy __getitem__ method could then check the BaseNode subclass and return the correct object (redirected to another Node for merged nodes or raise anerror for deleted nodes)
The information present in the
delnodes.dmp
andmerged.dmp
files should be (optionaly?) leveraged by the ncbi constructor to:Test cases: 2923454 should point to 89248 (Equus quagga) Any taxid in delnodes should raise anerror
This could be implemented by introducing new BaseNode subclasses. The Taxonomy
__getitem__
method could then check the BaseNode subclass and return the correct object (redirected to another Node for merged nodes or raise anerror for deleted nodes)