Add DisProt features - #213
Conversation
|
Hi, it would cause re-rendering annotations and the key after every protein's individual annotation load rather than when they have all loaded? Colin |
|
Hi @colin-combe , that commit actually comes from me. originally as you incremented the counter once per annotation group, you would reach a total of We noticed this issue while adding DisProt because they were never being rendered with the current system. With the proposed commit, once one "track" has fully loaded all its proteins, we render it. We could also wait for all the annotations from all the resources to be loaded before rendering them, but then you risk having uniprot features not being displayed if superFam is not working for instance, or just taking a long time to resolve. |
|
@EliotRagueneau - right, i see now it was broken.
Is that the behaviour now? Or is the cheers, |
Well we only trigger the callback once the counter reach the number of proteins, on the last callback after annotations have been created, so yeah, basically when the last protein have received back it's annotation from Uniprot, then we render everything. When the last protein received its annotations from SupFam, we render. The counter is actually important to keep track on whether we received the last protein or not 😄 |
I don't think so; there's nothing keeping track of whether responses are received. The So Right? best wishes, |
|
Hi Colin, The counter is being compared after the annotations have been added, so once the annotations have been received from the external resources. |
|
Hi Eliot, the code was equivalent to: protsAnnotated will equal molCount before any of the async functions are called, if you want to see that then add console logs to see the vaules of protsAnnotated and molCount when the condition is checked |
Uh oh!
There was an error while loading. Please reload this page.