ecl-logo Documentation

AllPalindromes

AllPalindromes[n]palindromes

given a length n, returns all palindromic sequences of length n.

Details

  • Palindromic sequences are sequences which are their own reverse complement.
  • 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)

The function is used to generate all palindromic sequences of a given length:

A palindrome is defined as a sequence this is its own reverse compliment:

The number of Palindromes explodes expoentially with larger lengths:

Options  (3)

Exclude  (1)

Specific Monomers or subsequences can be provided that must be excluded from the palindromes:

ExplicitlyTyped  (1)

Explicit typing of the output sequences can be requested:

Polymer  (1)

The polymer type can be provided using the Polymer options:

Attributes  (2)

Listable  (1)

The function is listable by the length of the palindromes:

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)

In DNA and RNA, there is no self-Pairing monomer and thus there are no palindromes of odd length: