INNER CODE UNIT · Python

condatest

franciscozorrilla/metaGEM · workflow/metaGEM.sh:104

condatest=$(conda list|wc -l)
if [[ "$condatest" -eq 0 ]]; then
    echo -e "WARNING: Conda is not available! Please load your cluster's conda module or install locally.\n" && exit
elif [[ "$condatest" -gt 0 ]]; then
    condav=$(conda --version|cut -d ' ' -f2)
    echo -e "detected version $condav!"
fi

# check if conda environments are present
echo -ne "Searching for metaGEM conda environment ... "
envcheck1=$(conda info --envs|grep -w metagem|wc -l)
if [[ "$envcheck1" -ge 1 ]]; then
    echo "detected! Activating metagem env ... "
    conda activate metagem
else
    echo "not detected, please run the env_setup.sh script!"
fi

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…