#!/bin/bash
# The following block can be used by the job system
# to ensure this script is runnable before actually attempting
# to run it.
if [ -n "$ABC_TEST_JOB_SCRIPT_INTEGRITY_XYZ" ]; then
exit 42
fi
[ "$CONDA_DEFAULT_ENV" = "/home/.galaxy/tooldeps/_conda/envs/mulled-v1-3b104c294f65450b09ba89d24826c61eddd553d789c9f1ae48a29715de1b7426" ] ||
MAX_TRIES=3
COUNT=0
while [ $COUNT -lt $MAX_TRIES ]; do
. /home/.galaxy/tooldeps/_conda/bin/activate '/home/.galaxy/tooldeps/_conda/envs/mulled-v1-3b104c294f65450b09ba89d24826c61eddd553d789c9f1ae48a29715de1b7426' > conda_activate.log 2>&1
if [ $? -eq 0 ];then
break
else
let COUNT=COUNT+1
if [ $COUNT -eq $MAX_TRIES ];then
echo "Failed to activate conda environment! Error was:"
cat conda_activate.log
exit 1
fi
sleep 10s
fi
done ; [ "$CONDA_DEFAULT_ENV" = "/home/.galaxy/tooldeps/_conda/envs/mulled-v1-3b104c294f65450b09ba89d24826c61eddd553d789c9f1ae48a29715de1b7426" ] ||
MAX_TRIES=3
COUNT=0
while [ $COUNT -lt $MAX_TRIES ]; do
. /home/.galaxy/tooldeps/_conda/bin/activate '/home/.galaxy/tooldeps/_conda/envs/mulled-v1-3b104c294f65450b09ba89d24826c61eddd553d789c9f1ae48a29715de1b7426' > conda_activate.log 2>&1
if [ $? -eq 0 ];then
break
else
let COUNT=COUNT+1
if [ $COUNT -eq $MAX_TRIES ];then
echo "Failed to activate conda environment! Error was:"
cat conda_activate.log
exit 1
fi
sleep 10s
fi
done ; hisat2 --version > /scratch2/galaxy/tmp/GALAXY_VERSION_STRING_7484 2>&1; set -o | grep -q pipefail && set -o pipefail; ln -s '/home/.galaxy/database/files/013/dataset_13248.dat' genome.fa && hisat2-build -p ${GALAXY_SLOTS:-1} genome.fa genome && ln -f -s '/home/.galaxy/database/files/013/dataset_13238.dat' input_f.fastq && ln -f -s '/home/.galaxy/database/files/013/dataset_13243.dat' input_r.fastq && hisat2 -p ${GALAXY_SLOTS:-1} -x 'genome' -1 'input_f.fastq' -2 'input_r.fastq' | samtools sort - -@ ${GALAXY_SLOTS:-1} -l 6 -o '/home/.galaxy/database/jobs_directory/007/7484/galaxy_dataset_19227.dat'
The job fails when it cannot find “hisat2-build”.
Fatal error: Exit code 127 ()
/home/.galaxy/database/jobs_directory/007/7484/tool_script.sh: line 41: hisat2-build: command not found
The PATH variable should be exported with installation (/home/.galaxy/tooldeps/hisat/2.0.3/iuc/package_hisat_2_0_3/dc03603edd43/env.sh):
PATH=/home/.galaxy/tooldeps/hisat/2.0.3/iuc/package_hisat_2_0_3/dc03603edd43/bin:$PATH; export PATH
HISAT2_ROOT_DIR=/home/.galaxy/tooldeps/hisat/2.0.3/iuc/package_hisat_2_0_3/dc03603edd43; export HISAT2_ROOT_DIR
HISAT_ROOT_DIR=/home/.galaxy/tooldeps/hisat/2.0.3/iuc/package_hisat_2_0_3/dc03603edd43; export HISAT_ROOT_DIR
The conda environment with dependencies seems to be there:
/home/.galaxy/tooldeps/_conda/envs/mulled-v1-3b104c294f65450b09ba89d24826c61eddd553d789c9f1ae48a29715de1b7426/bin
github.com
galaxy - Data intensive science for everyone.
|