-
Notifications
You must be signed in to change notification settings - Fork 46
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
Return error if argument overlap is too high in assembly_fragments #265
Comments
What do you think of this one @BjornFJohansson ? Do you agree it should raise an error? |
Wouldn't a warning be enough? The fragments in you example are what you would expect. Which argument is being ignored? If we go for an error, it needs to say what the longest permitted overlap is. |
What's being ignored is the parameter In this case, the value is not realistic, but if you are passing a value of |
OK, the error should probably tell the user what the maximum permitted overlap is for the particular assembly. |
I tried for a while with this one, but the function is a bit convoluted. I think unless we refactor it, it would be too cumbersome to test all scenarios. I would say let's just leave it as is, since the error will be caught downstream if you are imposing the same |
Right now, no error is returned if a value too high for
overlap
is passed toassembly_fragments
. For instance, you can pass a number longer than the template sequence itself, and it will simply return the homology until the end of the template sequence.I think this should raise a valueerror, because the argument is being ignored.
This can be worked on during the hackathon.
The text was updated successfully, but these errors were encountered: