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
c1280456
Unverified
Commit
c1280456
authored
Jun 14, 2021
by
Bertrand NÉRON
Browse files
fix number of line to display
parent
c6c1d48d
Changes
2
Hide whitespace changes
Inline
Side-by-side
source/Control_Flow_Statements.rst
View file @
c1280456
...
...
@@ -103,7 +103,7 @@ Exercise
.. literalinclude:: _static/code/restriction.py
:linenos:
:lines: 1-1
4
:lines: 1-1
6
:language: python
* improve the previous function to return all positions of binding sites
...
...
@@ -121,7 +121,7 @@ Exercise
.. literalinclude:: _static/code/restriction.py
:linenos:
:lines: 1
8
-33
:lines: 1
7
-33
:language: python
**pseudocode of second algorithm**
...
...
@@ -138,7 +138,7 @@ Exercise
.. literalinclude:: _static/code/restriction.py
:linenos:
:lines: 34-5
5
:lines: 34-5
6
:language: python
...
...
@@ -172,7 +172,7 @@ in bonus we can try to sort the list in the order of the position of the binding
.. literalinclude:: _static/code/restriction.py
:linenos:
:lines: 5
5
-
:lines: 5
7
-
:language: python
::
...
...
source/_static/code/restriction.py
View file @
c1280456
...
...
@@ -34,6 +34,7 @@ def one_enz_all_binding_sites(dna, enzyme):
def
one_enz_all_binding_sites2
(
dna
,
enzyme
):
"""
:param dna: the dna sequence to search enzyme binding sites
:type dna: str
:param enzyme: the enzyme to looking for
...
...
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