Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python_one_week_4_biologists_solutions
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hub-courses
python_one_week_4_biologists_solutions
Commits
e0f44684
Verified
Commit
e0f44684
authored
6 years ago
by
Bertrand NÉRON
Browse files
Options
Downloads
Patches
Plain Diff
fix file position for diplaying restriction.py file
parent
a5c2a361
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#10358
passed
6 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/Control_Flow_Statements.rst
+5
-5
5 additions, 5 deletions
source/Control_Flow_Statements.rst
with
5 additions
and
5 deletions
source/Control_Flow_Statements.rst
+
5
−
5
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
::
::
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment