GithubHelp home page GithubHelp logo

Comments (5)

veghp avatar veghp commented on July 25, 2024

Hi thanks for the feedback. I think that should be possible using the RestrictionLigationMix class, and specifying multiple enzymes in a list.

If that doesn't work, you can try creating StickyEndFragments and feeding them to the StickyEndAssemblyMix class.

This file shows how the classes work together in a simulation: https://github.com/Edinburgh-Genome-Foundry/DnaCauldron/blob/master/dnacauldron/README.md

Let me know if you have trouble with the implementation and I'll try and look into it.

from dnacauldron.

toriapetrova avatar toriapetrova commented on July 25, 2024

Hi, thank you for the great package and documentation. I would like to simulate a Type2s-like assembly where the acceptor and the inserts are digested by different enzymes. In other words, the acceptor is digested with enzyme A, and the insert (or inserts) are digested with enzyme B. Is it possible to simulate that using dnacauldron? Thanks

Hi, I am currently trying to do the same thing. Did it work for you and if yes which approach did you use? Thank you!

from dnacauldron.

toriapetrova avatar toriapetrova commented on July 25, 2024

Sorry for asking again but would it be possible to do a simulation of Type2s-restriction assembly from an assembly plan , but in the case where the backbone and the insert are digested by different enzymes?

from dnacauldron.

veghp avatar veghp commented on July 25, 2024

Hi @toriapetrova , this is a problem that interests us as well, and I have planned making a script that will do it using DNA Cauldron elements.

I'll update on progress here.

from dnacauldron.

veghp avatar veghp commented on July 25, 2024

An example code answer to the original question, digesting with multiple enzymes (at the same time):

from Bio import SeqIO
import dnacauldron as dc

records = dc.biotools.load_records_from_files(folder="part_records/", use_file_names_as_ids=True)
mix = dc.RestrictionLigationMix(
        parts=records,
        enzymes=["BsmBI", "BsaI"],
        fragment_filters=[dc.Filter.NoRestrictionSiteFilter("BsmBI"), dc.Filter.NoRestrictionSiteFilter("BsaI")],
        name="restriction_mix",
        annotate_fragments_with_parts=True,)

counter = 0  #  in case there are more than one product
for assembly_record in mix.compute_circular_assemblies():
    name = "record_" + str(counter) + ".gb"
    SeqIO.write(assembly_record, name), format="genbank")
    counter += 1

For using the assembly class, or an assembly plan, the original classes will have to be extended. I'll look into that as well.

from dnacauldron.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.