skbio.sequence.DNASequence.reverse_complement

DNASequence.reverse_complement()[source]

Return the reverse complement of the NucleotideSequence

Returns:

NucelotideSequence

The reverse complement of self. Specific type will be the same as type(self).

Raises:

skbio.sequence.BiologicalSequenceError

If a character is present in the NucleotideSequence that is not in self.complement_map.

Notes

The type, id, and description of the result will be the same as self. If quality scores are present, they will be reversed and included in the resulting biological sequence.