Files
annotate/detectors/trna/bin/go_trna.sh
Eric Coissac 8b27f23a8e change the call to awk
Former-commit-id: fa0b02e712db163ba6d37407cea46d1d413a7cb5
Former-commit-id: f393558b7962188159ac123d654ae14ee581f5f8
2015-11-09 14:01:21 +01:00

43 lines
940 B
Bash
Executable File

#!/bin/bash
#
# Annotate tRNA
#
#========================================================================================
#
# Annotate tRNA based on the Aragorn software predictions.
#
# go_trna.sh <FASTAFILE>
#
# - <FASTAFILE> : The fasta file containing the genome to annotate
#
# Results are printed to the standart output
#
#========================================================================================
# -- CAUTION -- Works as long as the script
# is not called through a symlink
THIS_DIR="$(dirname ${BASH_SOURCE[0]})"
source "${THIS_DIR}/../../../scripts/bash_init.sh"
pushTmpDir ORG.trna
CAUTRNADB="${TRNA_DATA_DIR}/CAU_tRNA_DB.fasta"
export CAUTRNADB
if [[ ! "$1" =~ ^/ ]]; then
QUERY="${CALL_DIR}/$1"
else
QUERY="$1"
fi
TRNA=$(basename ${QUERY})
aragorn -i -w -seq ${QUERY} | \
${AwkCmd} -f ${PROG_DIR}/../lib/aragorn_wrapper.awk
popTmpDir
exit 0