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

cutting by restriction enzymes with asymmetric target #134

Open
mzaki-jp opened this issue Mar 28, 2020 · 2 comments
Open

cutting by restriction enzymes with asymmetric target #134

mzaki-jp opened this issue Mar 28, 2020 · 2 comments

Comments

@mzaki-jp
Copy link

Bio::RestrictionEnzyme.cut detects restriction sites only on the sense strand for an enzyme with asymmetric target (e.g. BsmAI, MboII, etc.).

For example, MboII recognizes and cuts GAAGA (8/7) cf. REBASE.

> seq = Bio::Sequence::NA.new('aGAAGAttaggattgatgat')
> Bio::RestrictionEnzyme.cut(seq, 'MboII').primary rescue [seq]
=> ["agaagattaggatt", "gatgat"]
> seq = seq.reverse_complement
> Bio::RestrictionEnzyme.cut(seq, 'MboII').primary rescue [seq]
=> ["atcatcaatcctaatcttct"]

I think it should detect the sites on both strands, per semantics in bioinformatics.

@mzaki-jp
Copy link
Author

A quick hack to Bio::RestrictionEnzyme::Analysis#create_enzyme_actions resolved my problem.
The patch is attached, but please note that I don't know whether this is OK for general users.

@ngoto
Copy link
Member

ngoto commented Mar 31, 2020

Thank you very much.
I think the behavior of Bio::RestrictionEnzyme refers that of other programs/libraries such as tacg, EMBOSS, and BioPerl. I'd like to check them before merging the patch.

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