Edinburgh-Genome-Foundry / DnaChisel

:pencil2: A versatile DNA sequence optimizer
https://edinburgh-genome-foundry.github.io/DnaChisel/
MIT License
219 stars 40 forks source link

Issue when importing as of Nov. 28, 2022 #70

Closed nothinginbiology closed 1 year ago

nothinginbiology commented 1 year ago

Seems to be an error with dna_features_viewer or something. Can't import module.


TypeError Traceback (most recent call last) in ----> 1 from goldenhinges import OverhangsSelector, OverhangsSelector 2 import dnachisel 3 import geneblocks 4 from dnachisel import (EnforceTranslation, Specification, SpecEvaluation, 5 reverse_translate, random_protein_sequence, Location,

5 frames /usr/local/lib/python3.7/dist-packages/dna_features_viewer/biotools.py in 36 37 aa_short_to_long_form_dict = { ---> 38 _aa1: _aa3[0] + _aa3[1:].lower() for (_aa1, _aa3) in zip(aa1 + "", aa3 + [""]) 39 } 40

TypeError: can only concatenate tuple (not "str") to tuple

veghp commented 1 year ago

Thank you, yes it has been reported there and will be addressed: https://github.com/Edinburgh-Genome-Foundry/DnaFeaturesViewer/issues/73

Temporary solutions

veghp commented 1 year ago

This has been fixed upstream now and works with the latest Biopython. An additional matplotlib error has been fixed in the latest version, 3.2.10.