Edinburgh-Genome-Foundry / DnaCauldron

:alembic: Simple cloning simulator (Golden Gate etc.) for single and combinatorial assemblies
https://edinburgh-genome-foundry.github.io/DnaCauldron/
MIT License
50 stars 11 forks source link

Choosing enzyme in AssemblyPlan.from_spreadsheet() #9

Closed veghp closed 2 years ago

veghp commented 2 years ago

When the backbone contains 2 sets of correctly oriented enzyme sites (BsaI and BsmBI), then autoselect may not correctly choose the one we want to use. This can be addressed by specifying an enzyme for each assembly:

assembly_plan = dc.AssemblyPlan.from_spreadsheet(
    name="Assembly",
    path=assembly_plan_path,
    assembly_class=dc.Type2sRestrictionAssembly
)
for assembly in assembly_plan.assemblies:
    assembly.enzyme = "BsaI"

so this is not an issue in DNA Cauldron, but causes a bug in CUBA where the enzyme selected in the dropdown menu is ignored.

A possible solution is to make a note about this in the documentation and add the above code in CUBA.