From e0f4468485ffff1c5ade83ee2e169d5fa54ebdf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bertrand=20N=C3=A9ron?= <bneron@pasteur.fr> Date: Mon, 18 Mar 2019 08:17:25 +0100 Subject: [PATCH] fix file position for diplaying restriction.py file --- source/Control_Flow_Statements.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/Control_Flow_Statements.rst b/source/Control_Flow_Statements.rst index fad5d4a..b7bd98f 100644 --- a/source/Control_Flow_Statements.rst +++ b/source/Control_Flow_Statements.rst @@ -103,7 +103,7 @@ Exercise .. literalinclude:: _static/code/restriction.py :linenos: - :lines: 1-13 + :lines: 1-14 :language: python * improve the previous function to return all positions of binding sites @@ -121,12 +121,12 @@ Exercise .. literalinclude:: _static/code/restriction.py :linenos: - :lines: 13-25 + :lines: 15-31 :language: python **pseudocode of second algorithm** -| *function one_enz_binding_sites(dna, enzyme)* +| *function one_enz_all_binding_sites_2(dna, enzyme)* | *positions <- empty* | *find first position of binding site in dna* | *while we find binding site in dna* @@ -138,7 +138,7 @@ Exercise .. literalinclude:: _static/code/restriction.py :linenos: - :lines: 25-36 + :lines: 32-53 :language: python @@ -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 :linenos: - :lines: 37- + :lines: 54- :language: python :: -- GitLab