ecl-logo Documentation

AllSequences

AllSequences[n]sequences

returns a list of all possible sequences of length n.

Details

    Input
    Output
    General Options
    Messages
  • TooManyThe length of the output would generate `1` items. The maximum is number of items is set to `2` by $MaximumSequences.

Examples

Basic Examples  (3)

Given a length, all sequences will generate a list of every sequence of that length:

Lengths must be equal to or greater than one:

Lengths must be equal to or greater than one:

Options  (4)

Exclude  (1)

Providng a list of excluded Monomers or subsequences will only generate sequences that do not contain these Monomers or subsequences:

ExplicitlyTyped  (1)

Explicit typing can be requested though the ExplicitlyTyped option:

Polymer  (2)

Works on any known polymer type:

Including Non-nucleic acids like peptides:

Attributes  (2)

Listable  (1)

The function is listable by the length of the sequences:

Listable  (1)

Function is listable:

Messages  (1)

TooMany  (1)

If too large a space of solutions is requested, the TooMany error will be thrown:

Possible Issues  (1)

Length zero returns an empty list: