ecl-logo Documentation

Monomers

Monomers[sequence]monos

breaks a provided sequence up into a list of its composite monomers in order of the sequence.

Monomers[strand]monos

breaks up all of the sequences in a strand and returns a single list of these monomers.

Details

  • Even if the sequence is explicitly typed (e.g. DNA["ATGATA"], the function will strip the explicite type and any motif names when extracting the composite monomers.
  • Input
    Output
    General Options

Examples

Basic Examples  (3)

Splits a polymer into a list of its Monomers:

Splits explicitly typed polymers into explicitly typed Monomers:

Splits a Strand into its Monomers:

Additional Examples  (6)

Works on RNA:

Worsk for peptides:

Works with named strands:

Works with wildcard Monomers:

Splits starnds with multiple polymer types into Monomers:

Splitting two modifications:

Options  (3)

ExplicitlyTyped  (2)

When True, always returns explicitly typed Monomers:

When False, only returns lists of untyped Monomers:

Polymer  (1)

Set the polymer type:

Attributes  (2)

Listable  (1)

Maps across lists of strands:

Listable  (1)

Maps over lists of both typed and untyped sequences:

Messages  (1)

unknownPolymer  (1)

Invalid/Unknown sequence will throw a message: