Versions Compared

Key

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

Let’s create an interactive session on the HPC:

...

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

...

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.

Hands-on exercises

Exercise #1: running a test using a sample dataset

Code Block
Convert the sam file to bam (a binary sam format) using samtools’ view command
Sort the bam file (needed for fast access) using samtools sort command
Create an index of the bam file (needed by IGV) using samtools index command

Ecoli

https://www.ebi.ac.uk/ena/browser/view/SRR17645344