ecl-logo Documentation

ComplementSequenceQ

ComplementSequenceQ[sequenceA,sequenceB]out

returns true of sequenceA is the complement of sequenceB.

ComplementSequenceQ[strandA,strandB]out

returns true of strandA is the complement of strandB.

Details

  • Works on any combination of explicitly typed or non explicitly typed sequences.
  • Input
    Output
    General Options

Examples

Basic Examples  (3)

Check if two sequences are the Watson-Crick compliment of eachother:

Sequences can be implicity or explicitly typed:

Strands can be used as inputs in addition to sequences:

Additional Examples  (2)

Can also mix and match explicitly typed and implicitly typed sequences:

Non-Pairing sequences are not considered complements:

Options  (6)

CanonicalPairing  (2)

The CanonicalPairing option can be used to allow for matches across RNA/DNA polymers:

Or if set to False, the CanonicalPairing option will require a strict match across polymers:

Degeneracy  (2)

The Degeneracy option can be used to allow degenerate sequences to match:

Or if set to False the Degeneracy option can be used to require a strict match:

Polymer  (2)

The Polymer option is used to establish the polymer types of implicitly typed sequences when considering a match:

And thus it can be used to require strict matching of the polymer in a comparison:

Attributes  (2)

Listable  (2)

The function is listable by sequences:

The function MapThreads over pairs of lists: