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

primer_design TypeError: SeqRecord.__init__() got multiple values for argument 'id' #336

Closed
AlexeyNesterovichEst opened this issue Jan 23, 2025 · 2 comments
Assignees

Comments

@AlexeyNesterovichEst
Copy link

AlexeyNesterovichEst commented Jan 23, 2025

Hi!

I get the issue with primer_design and I use your example:

from pydna.dseqrecord import Dseqrecord
# Let's create a DNA sequence record, and add a feature to it
dsr = Dseqrecord("ATGCAAACAGTAATGATGGATGACATTCAAAGCACTGATTCTATTGCTGAAAAAGATAAT")
dsr.add_feature(x=0, y=60,type="gene", label="my_gene") # We add a feature to highlight the sequence as a gene
dsr.figure()

# Now let's design primers to amplify it
from pydna.design import primer_design
# limit is the minimum length of the primer, target_tm is the desired melting temperature of the primer
amplicon = primer_design(dsr, limit=13, target_tm=55)
# Let's print the primers, and a figure that shows where they align with the template sequence
print("forward primer:", amplicon.forward_primer.seq)
print("reverse primer:", amplicon.reverse_primer.seq)
amplicon.figure()

I used your code previously some time ago and it worked.

@manulera manulera self-assigned this Jan 23, 2025
@manulera
Copy link
Collaborator

Hi @AlexeyNesterovichEst, thanks very much for reporting the error. I will create an issue about it.

This seems to be a problem with biopython version 1.85.

You can get the normal behaviour with biopython 1.84. If you are using pip:

pip install pydna
pip install biopython==1.84

I will dig into the biopython issue now.

This was referenced Jan 23, 2025
@manulera
Copy link
Collaborator

Should work installing from pip now even if you don't specify biopython 1.84

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