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
e0f44684
Verified
Commit
e0f44684
authored
Mar 18, 2019
by
Bertrand NÉRON
Browse files
fix file position for diplaying restriction.py file
parent
a5c2a361
Pipeline
#10358
passed with stages
in 22 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
source/Control_Flow_Statements.rst
View file @
e0f44684
...
@@ -103,7 +103,7 @@ Exercise
...
@@ -103,7 +103,7 @@ Exercise
.. literalinclude:: _static/code/restriction.py
.. literalinclude:: _static/code/restriction.py
:linenos:
:linenos:
:lines: 1-1
3
:lines: 1-1
4
:language: python
:language: python
* improve the previous function to return all positions of binding sites
* improve the previous function to return all positions of binding sites
...
@@ -121,12 +121,12 @@ Exercise
...
@@ -121,12 +121,12 @@ Exercise
.. literalinclude:: _static/code/restriction.py
.. literalinclude:: _static/code/restriction.py
:linenos:
:linenos:
:lines: 1
3-25
:lines: 1
5-31
:language: python
:language: python
**pseudocode of second algorithm**
**pseudocode of second algorithm**
| *function one_enz_binding_sites(dna, enzyme)*
| *function one_enz_
all_
binding_sites
_2
(dna, enzyme)*
| *positions <- empty*
| *positions <- empty*
| *find first position of binding site in dna*
| *find first position of binding site in dna*
| *while we find binding site in dna*
| *while we find binding site in dna*
...
@@ -138,7 +138,7 @@ Exercise
...
@@ -138,7 +138,7 @@ Exercise
.. literalinclude:: _static/code/restriction.py
.. literalinclude:: _static/code/restriction.py
:linenos:
:linenos:
:lines:
25-36
:lines:
32-53
:language: python
:language: python
...
@@ -175,7 +175,7 @@ in bonus we can try to sort the list in the order of the position of the binding
...
@@ -175,7 +175,7 @@ in bonus we can try to sort the list in the order of the position of the binding
.. literalinclude:: _static/code/restriction.py
.. literalinclude:: _static/code/restriction.py
:linenos:
:linenos:
:lines:
37
-
:lines:
54
-
:language: python
:language: python
::
::
...
...
Write
Preview
Supports
Markdown
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