8/23/24
Open a shell on Atlas and navigate to your project directory.
module load miniconda3
Initialize Conda to work with your shell:
conda init
You may need to restart your shell session. Close your terminal window and open a new one.
Creating an environment helps manage dependencies. In the code below,
replace beast2_env
with any name of your choosing.
conda create -n beast2_env
- When prompted, type
Y
to proceed with the environment creation.
conda activate beast2_env
You should see the environment name prefixed in your shell prompt (before your username).
Add the necessary channels to install BEAST2 and its dependencies.
conda config --add channels conda-forge
conda config --add channels bioconda
conda config --add channels defaults
conda config --show channels
You should see:
channels:
- conda-forge
- bioconda
- defaults
Now, install BEAST2 using Conda:
conda install -c bioconda beast2
- Type
Y
when prompted to proceed with the installation. - Conda will resolve dependencies and install BEAST2 along with the appropriate Java version.
beast -help
You should see usage information for BEAST2.
which treeannotator
If the path to treeannotator
is displayed, it means the command is
available.
Now you can run treeannotator
using the alias or the command.
Assuming that the fmd-viet-treelog.trees
file are
treeannotator -burnin 10 -heights median fmd-viet-treelog.trees atlas_test.tre
Ensure that you are in the directory containing your input file
fmd-viet-treelog.trees
or provide the full path to the file.
After you’re finished, you can deactivate the environment:
conda deactivate