We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from Bio.Restriction import AatII, ZraI from pydna.dseq import Dseq s = Dseq("GACGTC") s.cut(AatII) # (Dseq(-5) # GACGT # C, # Dseq(-5) # C # TGCAG) s.cut(ZraI) # (Dseq(-3) # GAC # CTG, # Dseq(-3) # GTC # CAG) s.cut(AatII + ZraI) # ValueError: Cuts overlap
The text was updated successfully, but these errors were encountered:
Hi @BjornFJohansson yes, I added this in the PR about cutsites, the tests for the feature are here:
https://github.com/BjornFJohansson/pydna/blob/989e76eec0e46775aac7df1cab7c957834117608/tests/test_module_dseq.py#L876C46-L930C17
Shouldn't this be the desired behaviour? Or you mean that it should return a different type of error?
Sorry, something went wrong.
Not sure yet, This is what happens in the old version. This is not good as it actually hides the problem.
(n39) bjorn@bjorn-ThinkPad-T450s:~$ python Python 3.9.19 | packaged by conda-forge | (main, Mar 20 2024, 12:50:21) [GCC 12.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from Bio.Restriction import AatII, ZraI >>> from pydna.dseq import Dseq >>> s = Dseq("GACGTC") >>> s.cut(AatII) (Dseq(-5) GACGT C, Dseq(-5) C TGCAG) >>> s.cut(ZraI) (Dseq(-3) GAC CTG, Dseq(-3) GTC CAG) >>> s.cut(AatII + ZraI) (Dseq(-3) GAC CTG, Dseq(-3) GTC CAG) >>> s.cut(ZraI+AatII) (Dseq(-3) GAC CTG, Dseq(-3) GTC CAG) >>> s.cut(ZraI,AatII) (Dseq(-3) GAC CTG, Dseq(-3) GTC CAG) >>> s.cut(AatII, ZraI) (Dseq(-5) GACGT C, Dseq(-5) C TGCAG) >>> import pydna >>> pydna.__version__ '5.2.0' >>>
BjornFJohansson
No branches or pull requests
The text was updated successfully, but these errors were encountered: