mobiusklein / glypy

Glycan Analysis and Glycoinformatics Library for Python
Apache License 2.0
27 stars 14 forks source link

Convert `identity.identify` from a linear search to a tree search #4

Open mobiusklein opened 9 years ago

mobiusklein commented 9 years ago

Convert identity.identify from a linear search to a tree search using residue_list_to_tree. Currently the function calls identity.is_a on every monosaccharide in the index, which is costly. Instead, it should try to narrow the possibilities by traversing a tree of collections of residues to limit the number of direct comparisons.

However, this breaks down as the error tolerance increases. How to handle?