2021-05-27 12:27:03 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
# This example show a list of availabel conda environments #
|
|
|
|
#############################################################
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
# set qsub options #
|
|
|
|
#############################################################
|
|
|
|
# run in low.q
|
|
|
|
#$ -l low
|
|
|
|
|
|
|
|
# request enough memory
|
|
|
|
# #$ -l h_vmem=8G,memory=8G,h_stack=8M
|
|
|
|
|
|
|
|
# Name the job 'Conda-Test'
|
|
|
|
#$ -N Conda-Test
|
|
|
|
|
2024-08-26 17:52:43 +02:00
|
|
|
# send e-mail after job has finished
|
|
|
|
# use the -M option to define your e-mail address
|
|
|
|
# #$ -M my-email@example.org
|
|
|
|
#$ -m e
|
|
|
|
|
|
|
|
# join stdout and stderr in one file
|
|
|
|
#$ -j y
|
|
|
|
|
2021-05-27 12:27:03 +02:00
|
|
|
#############################################################
|
|
|
|
# initialize conda #
|
|
|
|
#############################################################
|
|
|
|
__conda_setup="$('/opt/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
eval "$__conda_setup"
|
|
|
|
else
|
|
|
|
if [ -f "/opt/anaconda3/etc/profile.d/conda.sh" ]; then
|
|
|
|
. "/opt/anaconda3/etc/profile.d/conda.sh"
|
|
|
|
else
|
|
|
|
export PATH="/opt/anaconda3/bin:$PATH"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
unset __conda_setup
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
# show conda environments #
|
|
|
|
#############################################################
|
|
|
|
conda env list
|