Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error raised by low-homology references (ValueError: No alignments are stored in the aligner) #34

Closed
sminot opened this issue Jan 8, 2021 · 3 comments

Comments

@sminot
Copy link

sminot commented Jan 8, 2021

I have encountered an error message while processing some genome regions with clinker:

ValueError: No alignments are stored in the aligner

My understanding is that this error is being raised because there is a GBK in the list of inputs which does not have any alignment (that fall above the threshold of inclusion) with any other GBKs in the inputs.

I can definitely understand why this behavior may have been set up, with the justification that if a user provides a GBK then it should be included in the output. However, in my case I have been using clinker as the final visualization component of a larger workflow (BOFFO), which is able to identify homologous genome regions from a collection of bacterial genomes based on a small set of query sequences. In this approach, the inputs to clinker can easily have such distantly-related genes that they do not align above the threshold. For this purpose, it would be really nice if clinker just ignored any GBK inputs which do not align.

Would it be possible to have clinker ignore these missing alignments? Either by default or with an optional flag?

@sminot
Copy link
Author

sminot commented Jan 8, 2021

To be clear, I'm only asking this question because clinker has been such an incredibly useful tool! Thank you so much for all your work putting wonderful utility together!

@gamcil
Copy link
Owner

gamcil commented Jan 11, 2021

Glad you find it useful :)

So, clinker internally uses an aligner object which saves all cluster alignments generated during the pipeline - your error should only pop up when attempting to generate the results text summary from that aligner object when no alignments have been generated/saved. In the main clinker workflow, this should be accounted for (i.e. only attempts to generate the summary if there are saved alignments), and the visualisation should work fine regardless.

Even if two clusters don't have any gene links above the threshold, an alignment between them should still be saved, so I think something might be going wrong in the actual alignment stage..

Could you upload some regions that are causing this issue for you? And are you using the most recent version of clinker?

@sminot
Copy link
Author

sminot commented Jan 11, 2021

This is very helpful! It appears that this error is coming up for the exact reason you anticipated. This gives me everything I need to fix it on our end. Thanks!

@sminot sminot closed this as completed Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants