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

[FR] Oligo Annealing for Seqs and SeqRecords #87

Open
jan-glx opened this issue Oct 5, 2022 · 2 comments
Open

[FR] Oligo Annealing for Seqs and SeqRecords #87

jan-glx opened this issue Oct 5, 2022 · 2 comments

Comments

@jan-glx
Copy link
Contributor

jan-glx commented Oct 5, 2022

DSeq(watson, crick) allows to generate a DSeq object from watson and crick strands specified as strings. It would be nice if it was possible to

  1. generate a DSeq object from watson and crick strands specified as Seqs
  2. generate a DSeqRecord object from watson and crick strands specified as SeqRecords

My current workaround for (2) is this:

def anneal_strands(watson, crick, name = None):
    if (name is None) and watson.name is not None:
        name = watson.name + " & " + crick.name

    res = Dseqrecord( Dseq(str(watson.seq), str(crick.seq)), name)
    for strand in (watson, crick):
        for feature in strand.features :
            res.add_feature(seq = feature.extract(strand), label = feature.qualifiers["label"])
    return res
@BjornFJohansson
Copy link
Owner

Hi, I just saw this, Ill get back asap.

@BjornFJohansson
Copy link
Owner

I never had a use case for this. Do you still need this?

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