Skip to content
Snippets Groups Projects

Text review

Merged Etienne KORNOBIS requested to merge ekornobi/unix_tunis:main into main
18 files
+ 229
236
Compare changes
  • Side-by-side
  • Inline

Files

+ 14
14
@@ -11,7 +11,7 @@ Reproducible environment: Conda
@@ -11,7 +11,7 @@ Reproducible environment: Conda
Installation
Installation
============
============
from the source
From the source
---------------
---------------
First we will install **miniconda**, which is a light version of conda.
First we will install **miniconda**, which is a light version of conda.
@@ -30,13 +30,13 @@ For Linux users, you should see a section like this one:
@@ -30,13 +30,13 @@ For Linux users, you should see a section like this one:
What about the Python versions and 32/64 bits flavours ?
What about the Python versions and 32/64 bits flavours ?
#. You have the choice between different architecture (e.g., 32/64 bits). Usually, you with
#. You have the choice between different architectures (e.g. 32/64 bits). Usually, with
modern architecture the 64bits version is the one to download.
modern architectures, the 64bits version is the one to download.
#. You have the choice between several version of Python (e.g., 2.7, 3.7, etc).
#. You have the choice between several version of Python (e.g., 2.7, 3.7, etc).
This version is independent of the version installed on your computer.
This version is independent of the version installed on your computer.
This will be the version used by conda internally in the first environment (the **base**).
This will be the version used by conda internally in the first environment (the **base**).
Later on you may create environments with other Python version anyway.
Later on you may create environments with other Python version anyway.
So, you may choose the latest one(e.g. python 3.9).
So, you may choose the latest one (e.g. python 3.9).
As an example, in a Linux terminal you can download this version::
As an example, in a Linux terminal you can download this version::
@@ -51,7 +51,7 @@ Follow the instructions. Answer yes to "Do you wish the installer to initialize
@@ -51,7 +51,7 @@ Follow the instructions. Answer yes to "Do you wish the installer to initialize
The installation will create a miniconda folder, by default in the home directory ``(~/miniconda3)``.
The installation will create a miniconda folder, by default in the home directory ``(~/miniconda3)``.
say no when `conda` ask you to activate conda by default
Say no when `conda` ask you to activate conda by default
.. note::
.. note::
@@ -135,8 +135,8 @@ activate conda
@@ -135,8 +135,8 @@ activate conda
.. note::
.. note::
The (base) at he beginning of your prompt indicate that you are in base environment.
The (base) at the beginning of your prompt indicates that you are in the base environment.
We will see environment later
We will see environments later on.
We will first install a standard Python package called **pandas**::
We will first install a standard Python package called **pandas**::
@@ -254,7 +254,7 @@ First we will activate the environment::
@@ -254,7 +254,7 @@ First we will activate the environment::
You can see that the information of your current environment is displayed in the bash prompt (ie ``(repro)``).
You can see that the information of your current environment is displayed in the bash prompt (ie ``(repro)``).
And install in it the packages needed for our analysis::
And install in it some packages of interest::
conda install bwa samtools ivar pangolin nextclade_js
conda install bwa samtools ivar pangolin nextclade_js
@@ -311,13 +311,13 @@ You could now delete this environment and reproduce it from the YAML file::
@@ -311,13 +311,13 @@ You could now delete this environment and reproduce it from the YAML file::
Mamba
Mamba
=====
=====
You find conda install
If you find conda install:
* too slow,
* too slow
* consuming too memory
* consuming too much memory
* does not able to resolve dependencies either with anaconda or miniconda
* to not be able to resolve dependencies either with anaconda or miniconda
try `mamba <https://mamba.readthedocs.io/en/latest/user_guide/mamba.html>`_. In your **base** environment
Try `mamba <https://mamba.readthedocs.io/en/latest/user_guide/mamba.html>`_. In your **base** environment
.. code-block::
.. code-block::
@@ -337,7 +337,7 @@ You can swap almost all commands between conda & mamba
@@ -337,7 +337,7 @@ You can swap almost all commands between conda & mamba
.. warning::
.. warning::
The only difference is that you should still use `conda` for activation and deactivation.
The only difference is that you should still use `conda` for activation and deactivation of environments.
Exercises
Exercises
Loading