ecl-logo Documentation

ValidMotifQ

ValidMotifQ[motif]out

returns True if motif is a valid motif (explicitly typed sequence).

Details

  • Input
    Output
    General Options
    Attributes
  • Listable

Examples

Basic Examples  (4)

Tests if a given input is a DNA motif:

Works on any polymer type including RNA:

Or even peptides:

But will return false for anything that's not a known DNA motif:

Additional Examples  (2)

Named motifs are accepted by sequence as well:

Numeric motifs are also OK:

Options  (12)

AlternativeEncodings  (2)

Alternative coding alphabets for the polymer will be checked when AlternativeEncodings is set to True:

If AlternativeEncodings is set to False, then alternative coding alphabets for the polymer will not be permitted in the motif:

Degeneracy  (4)

If Degeneracy is set to true then degenerate Monomers will be permitted in the motif:

If Degeneracy is set to false, then degenerate Monomers will not be permitted in the motif:

Numeric sequences are rejected when Degeneracy is set to False:

Numeric sequences are accepted when Degeneracy is set to True:

Exclude  (2)

Exclude takes a list of Monomers that should not be permitted in the motif:

Exclude takes a list of Monomers that should not be permitted in the motif:

Polymer  (4)

Providing the polymer type will test of the motif is composed of only Monomers in the polymer's alphabet:

If the provided type doesn't match the sequence, ValidMotifQ will return false:

Works with explicitly typed sequence as well:

Peptides for instance work as well:

Attributes  (2)

Listable  (2)

List input:

List input with polymer option: