Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Let’s create an interactive session on the HPC:

...

Code Block
conda create -n ONTvariantONTvariants_mapping
Code Block
Collecting package metadata (current_repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 4.12.0
  latest version: 24.5.0

Please update conda by running

    $ conda update -n base -c defaults conda



## Package Plan ##

  environment location: /home/barrero/miniconda3/envs/ONTvariant



Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate ONTvariantONTvariants_mapping
#
# To deactivate an active environment, use
#
#     $ conda deactivate

Let’s activate the conda environment:

Code Block
conda activate ONTvariantONTvariants_mapping

Next, we need to install few tools for today’s exercises. Now let’s go the https://anaconda.org and search for the following tools and instructions on how to install them:

...

Now we are done installing all the tools that we need for today.

Approach #2 (we are not doing this - this just for your information) - installing all tools at once (slower option!)

Prepare the following environment.yml file:

Code Block
name: ONTvariants
channels:
  - conda-forge
  - defaults
  - bioconda
dependencies:
  - samtools=1.20
  - sniffles=1.0.12
  - minimap=2-2.28
  - seqkit=2.8.1

...

As you have seen, we can search at anaconda.org for other tools that we might be interested to use.

Remember, if you run into compatibility issues or errors, you can always create a new conda environment for the tool of interest. NOTE: you can switch between conda environements as follows:

Code Block
conda activate myenvironment1
#... do so work with it
conda deactivate
#now we can activate another environment
conda activate myenvironment2
#... do some other tasks
conda deactivate #optional to deactivate last environment to use given that when we submit a job to the HPC cluster it will be closed automatically at the completion of the last task.

...