ecl-logo Documentation

StrandTake

StrandTake[str, p]out

takes the first n Monomers if p is positive, and the last p Monomers if p is negative.

StrandTake[str, m ;; n]out

takes Monomers from m to n.

StrandTake[str, {k, m ;; n}]out

takes Monomers from m to n from motif k.

Details

    Input
    Output

Examples

Basic Examples  (4)

Take first 20 Monomers in Strand:

Take last 5 Monomers in Strand:

Specify monomer span to take:

Speicfy monomer spand and motif index:

Messages  (1)

invalidSpan  (1)

Throw an error if asked for more Monomers than exist in the Strand: