Fix Gitlab domain links authored by Sergio Najib's avatar Sergio Najib


Signed-off-by: default avatarSergio Arroutbi <sergio.arroutbi@urjc.es>
...@@ -157,11 +157,11 @@ s2 = Seq() ...@@ -157,11 +157,11 @@ s2 = Seq()
Let's place a **breakpoint** in line 7: Let's place a **breakpoint** in line 7:
![](https://gitlab.etsit.urjc.es/rperez/pne-wiki/-/raw/master/s6-OOP/oop-01.png) ![](https://gitlab.eif.urjc.es/rperez/pne-wiki/-/raw/master/s6-OOP/oop-01.png)
Press the **step over** option twice. On the variable panel we will see the **two new objects** created: **s1** and **s2**. Notice that they both are of **type Seq**: Press the **step over** option twice. On the variable panel we will see the **two new objects** created: **s1** and **s2**. Notice that they both are of **type Seq**:
![](https://gitlab.etsit.urjc.es/rperez/pne-wiki/-/raw/master/s6-OOP/oop-02.png) ![](https://gitlab.eif.urjc.es/rperez/pne-wiki/-/raw/master/s6-OOP/oop-02.png)
Congrats! You have created your first two **empty objects**! Congrats! You have created your first two **empty objects**!
...@@ -218,7 +218,7 @@ s2 = Seq("CGTAAC") ...@@ -218,7 +218,7 @@ s2 = Seq("CGTAAC")
If you **execute** it, you will see the **same output** as before, but now something has happened. The two objects created have their own **sequence string** stored in the **strbases** attribute. Let's debug it to see it. If you **execute** it, you will see the **same output** as before, but now something has happened. The two objects created have their own **sequence string** stored in the **strbases** attribute. Let's debug it to see it.
![](https://gitlab.etsit.urjc.es/rperez/pne-wiki/-/raw/master/s6-OOP/oop-03.png) ![](https://gitlab.eif.urjc.es/rperez/pne-wiki/-/raw/master/s6-OOP/oop-03.png)
Each object has **its own sequence**! If you **debug** it using the **step into** option, you will see that the sequence is stored in the object when the **self.strbases = strbases** line is executed. Each object has **its own sequence**! If you **debug** it using the **step into** option, you will see that the sequence is stored in the object when the **self.strbases = strbases** line is executed.
...@@ -443,11 +443,11 @@ Gene: FRAT1-CGTAAC ...@@ -443,11 +443,11 @@ Gene: FRAT1-CGTAAC
If you have a look to the right side of the \__str_\_ method in the **Gene Class**, you will notice a new icon: a **circle with an arrow** pointing upwards. This means that this methods is **overriding** another implemented in the super class (Seq). If you have a look to the right side of the \__str_\_ method in the **Gene Class**, you will notice a new icon: a **circle with an arrow** pointing upwards. This means that this methods is **overriding** another implemented in the super class (Seq).
![](https://gitlab.etsit.urjc.es/rperez/pne-wiki/-/raw/master/s6-OOP/oop-04.png) ![](https://gitlab.eif.urjc.es/rperez/pne-wiki/-/raw/master/s6-OOP/oop-04.png)
On the other hand, if you have a look at the \__str_\_ method in the **Seq Class**, you will see the previous icon and a **new one** with another circle and **arrow pointing downwards**. On the other hand, if you have a look at the \__str_\_ method in the **Seq Class**, you will see the previous icon and a **new one** with another circle and **arrow pointing downwards**.
![](https://gitlab.etsit.urjc.es/rperez/pne-wiki/-/raw/master/s6-OOP/oop-05.png) ![](https://gitlab.eif.urjc.es/rperez/pne-wiki/-/raw/master/s6-OOP/oop-05.png)
This means that there is a **sub-class** that is overriding this method. And that the Seq \__str_\_ method is also overriding another one from its **super class** (generic). This means that there is a **sub-class** that is overriding this method. And that the Seq \__str_\_ method is also overriding another one from its **super class** (generic).
...@@ -465,17 +465,17 @@ termcolor.cprint("Hey! this is printed in green!", 'green') ...@@ -465,17 +465,17 @@ termcolor.cprint("Hey! this is printed in green!", 'green')
You will see that the word **termcolor** is underlined in **red**. This is because PyCharm does not know anything about the termcolor module. You will see that the word **termcolor** is underlined in **red**. This is because PyCharm does not know anything about the termcolor module.
![](https://gitlab.etsit.urjc.es/rperez/pne-wiki/-/raw/master/s6-OOP/libraries-02.png) ![](https://gitlab.eif.urjc.es/rperez/pne-wiki/-/raw/master/s6-OOP/libraries-02.png)
Place the **mouse pointer** on termcolor and a **new window** will pop up: Place the **mouse pointer** on termcolor and a **new window** will pop up:
![](https://gitlab.etsit.urjc.es/rperez/pne-wiki/-/raw/master/s6-OOP/libraries-01.png) ![](https://gitlab.eif.urjc.es/rperez/pne-wiki/-/raw/master/s6-OOP/libraries-01.png)
Click on the **install package termcolor** option. The package start the installation. After some seconds it will be ready so the termcolor word will be no longer in red. Click on the **install package termcolor** option. The package start the installation. After some seconds it will be ready so the termcolor word will be no longer in red.
Now **run** the program. You will see a green message: Now **run** the program. You will see a green message:
![](https://gitlab.etsit.urjc.es/rperez/pne-wiki/-/raw/master/s6-OOP/libraries-03.png) ![](https://gitlab.eif.urjc.es/rperez/pne-wiki/-/raw/master/s6-OOP/libraries-03.png)
You now have the power of printing in colors... remember to use it wisely :) You now have the power of printing in colors... remember to use it wisely :)
...@@ -592,7 +592,7 @@ You should modify the **print_seqs()** function for including an additional para ...@@ -592,7 +592,7 @@ You should modify the **print_seqs()** function for including an additional para
* **Filename**: S06/e4.py * **Filename**: S06/e4.py
* **Description**: The same output than for e3.py, but in colors. This is how it should looks like: * **Description**: The same output than for e3.py, but in colors. This is how it should looks like:
![](https://gitlab.etsit.urjc.es/rperez/pne-wiki/-/raw/master/s6-OOP/ex4-01.png) ![](https://gitlab.eif.urjc.es/rperez/pne-wiki/-/raw/master/s6-OOP/ex4-01.png)
## END of the session ## END of the session
...@@ -616,7 +616,7 @@ The session is finished. Make sure, during this week, that everything in this li ...@@ -616,7 +616,7 @@ The session is finished. Make sure, during this week, that everything in this li
# License # License
![](https://gitlab.etsit.urjc.es/rperez/PNE/-/raw/master/Cover/attribution-share-alike-creative-commons-license.png) ![](https://gitlab.eif.urjc.es/rperez/PNE/-/raw/master/Cover/attribution-share-alike-creative-commons-license.png)
# Links # Links
... ...
......