Learn Before
Concept
Complements and Reverse Complements
When working with nucleotide sequences, you can obtain the complements of the sequence :
my_seqq = Seq("GATCGATATATAGGAAATCGC") print(my_seqq.complement())
You can also obtain the reverse complements :
print(my_seqq.reverse_complement())
When printed out, the result will be :
CTAGCTATATATCCTTTAGCG GCGATTTCCTATATATCGATC
0
1
Updated 2021-07-27
Tags
Python Programming Language
Data Science