2015-10-11 10:39:59 -03:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Annotate tRNA
|
|
|
|
#
|
|
|
|
#========================================================================================
|
|
|
|
#
|
|
|
|
# Annotate tRNA based on the Aragorn software predictions.
|
2015-11-08 14:28:57 +01:00
|
|
|
#
|
2015-10-11 10:39:59 -03:00
|
|
|
# go_trna.sh <FASTAFILE>
|
|
|
|
#
|
|
|
|
# - <FASTAFILE> : The fasta file containing the genome to annotate
|
|
|
|
#
|
|
|
|
# Results are printed to the standart output
|
|
|
|
#
|
|
|
|
#========================================================================================
|
|
|
|
|
2015-11-08 14:28:57 +01:00
|
|
|
# -- CAUTION -- Works as long as the script
|
2015-10-11 10:39:59 -03:00
|
|
|
# is not called through a symlink
|
2015-11-08 14:28:57 +01:00
|
|
|
THIS_DIR="$(dirname ${BASH_SOURCE[0]})"
|
|
|
|
source "${THIS_DIR}/../../../scripts/bash_init.sh"
|
2015-10-11 10:39:59 -03:00
|
|
|
|
|
|
|
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} | \
|
2015-11-09 13:11:54 +01:00
|
|
|
${CmdAwk} -f ${PROG_DIR}/../lib/aragorn_wrapper.awk
|
2015-10-11 10:39:59 -03:00
|
|
|
|
|
|
|
|
|
|
|
popTmpDir
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|