Function replicateDNASimple

  • Simple DNA replication that returns just the replicated strands.

    This is a convenience function for when you only need the replicated DNA and don't care about replication statistics or events.

    Parameters

    • dna: DNA

      The DNA sequence to replicate

    • organism: OrganismProfile = E_COLI

      Optional organism profile (default: E_COLI)

    Returns ValidationResult<[DNA, DNA]>

    ValidationResult containing the two replicated DNA strands

    Example

    import { DNA, replicateDNASimple } from 'ts-dna';

    const dna = new DNA('ATGCGATCGTAGCTACGT');
    const result = replicateDNASimple(dna);

    if (result.success) {
    const [strand1, strand2] = result.data;
    console.log('Replication completed!');
    }