ecl-logo Documentation

SequenceRotateLeft

SequenceRotateLeft[seq,n]rotated

moves the last n Monomers from the rear of the seq to the front of seq.

SequenceRotateLeft[seq]rotated

rotate seq left by one monomer.

Details

    Input
    Output
    General Options

Examples

Basic Examples  (4)

Rotating to the right will move the last monomer in the sequence to the front of the sequence:

Rotating to teh right by 2 will move the last two bases to the front of the sequence:

Rotation is on the basis of the number of Monomers rather then the number of characters in a string:

Rotation is on the basis of the number of Monomers rather then the number of characters in a string:

Additional Examples  (2)

Rotataion works with degenerate sequences as well:

Rotating a sequence with a motif label will remove the label (since is sequence will no longer match the motif):

Options  (2)

ExplicitlyTyped  (1)

Setting the ExplicitlyTyped option to true will return the sequence wrapped in its type:

Polymer  (1)

The Polymer option can be set so as to spesifiy what polymer you're working with in an implicily typed sequence:

Attributes  (2)

Listable  (2)

The function is listable by n:

The function is also listable by sequence:

Possible Issues  (2)

Rotating a sequence will remove its motif name:

Unless you rotate it around back to where you started, returning the same sequence: