ecl-logo Documentation

ReverseComplementSequenceQ

ReverseComplementSequenceQ[sequenceA,sequenceB]out

returns true of sequenceA is the reverse complement of sequenceB.

ReverseComplementSequenceQ[strandA,strandB]out

returns true of strandA is the reverse complement of strandB.

ReverseComplementSequenceQ[motifA,motifB]out

returns true if motifA is the reverse complement of motifB (name motif with a ' after it).

Details

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

Examples

Basic Examples  (3)

The function ReverseComplementSequenceQ is used to check if two sequences are the reverse complement of eachother:

The function also works on strands as well as sequences:

Motif names can also be exampined to see if they are reverse complementary by checking for a tick mark:

Additional Examples  (4)

Works with explicitly typed and implicitly typed sequences:

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

Non-Pairing sequences are not considered reverse complements:

Test the reverse complement for LNAChimera:

Options  (13)

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  (4)

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:

Degenerate numeric sequences are considered matches when Degeneracy is set to True:

Degenerate numeric sequences are not considered matches when Degeneracy is set to False:

Motif  (5)

The Motif options is used to disambiguate cases where a the inputs could be sequences or motifs:

If the Motif option is set to False, the function will assume its considering sequences:

If the Motif option is set to True, the function will assume its considering motif names:

If the Motif option is set to Automatic and the case is ambigous, the function assumes its considering sequences:

In the context of a sequence, motif names are ignored by ReverseComplementSequenceQ:

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: