Skip to content
Snippets Groups Projects
Unverified Commit f7903932 authored by Bertrand  NÉRON's avatar Bertrand NÉRON
Browse files

fix rev_comp2

parent 331d5485
No related branches found
No related tags found
No related merge requests found
Pipeline #58163 passed
import string
def rev_comp(seq):
"""
......@@ -8,6 +8,6 @@ def rev_comp(seq):
reverse = seq[::-1]
direct = 'acgtATCG'
comp = 'tgcaTGCA'
table = string.maketrans(direct, comp)
table = str.maketrans(direct, comp)
rev_comp = reverse.translate(table)
return rev_comp
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment