skbio.sequence.DNASequence.complement

DNASequence.complement()[source]

Return the complement of the NucleotideSequence

Returns:

NucelotideSequence

The 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, description, and quality scores of the result will be the same as self.