Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hub-courses
python_one_week_4_biologists_solutions
Commits
f7903932
Unverified
Commit
f7903932
authored
Jun 08, 2021
by
Bertrand NÉRON
Browse files
fix rev_comp2
parent
331d5485
Pipeline
#58163
passed with stages
in 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
source/_static/code/rev_comp2.py
View file @
f7903932
import
string
def
rev_comp
(
seq
):
"""
...
...
@@ -8,6 +8,6 @@ def rev_comp(seq):
reverse
=
seq
[::
-
1
]
direct
=
'acgtATCG'
comp
=
'tgcaTGCA'
table
=
str
ing
.
maketrans
(
direct
,
comp
)
table
=
str
.
maketrans
(
direct
,
comp
)
rev_comp
=
reverse
.
translate
(
table
)
return
rev_comp
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment