Add logs to print the sequence length and if the sequence is reverse
complemented Former-commit-id: ba55f354ea7a51119fe44bcb36aa5927194293e2 Former-commit-id: dd7715be54ac92c9625f0a2c30e572b7aee76dc7
This commit is contained in:
@ -23,7 +23,6 @@ source "${THIS_DIR}/../../../scripts/bash_init.sh"
|
|||||||
pushTmpDir ORG.its
|
pushTmpDir ORG.its
|
||||||
|
|
||||||
loginfo "Normalizing nuclear rDNA cistron..."
|
loginfo "Normalizing nuclear rDNA cistron..."
|
||||||
|
|
||||||
RRNADB="${NUCRRNA_DATA_DIR}/plants/nuc_RRNA.hmm"
|
RRNADB="${NUCRRNA_DATA_DIR}/plants/nuc_RRNA.hmm"
|
||||||
|
|
||||||
if [[ ! "$1" =~ ^/ ]]; then
|
if [[ ! "$1" =~ ^/ ]]; then
|
||||||
@ -32,6 +31,7 @@ pushTmpDir ORG.its
|
|||||||
QUERY="$1"
|
QUERY="$1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
loginfo "Sequence length $(seqlength ${QUERY})"
|
||||||
|
|
||||||
strand=( $(hmmsearch --max ${RRNADB} ${QUERY} | \
|
strand=( $(hmmsearch --max ${RRNADB} ${QUERY} | \
|
||||||
$AwkCmd '/Query: / { \
|
$AwkCmd '/Query: / { \
|
||||||
@ -55,7 +55,8 @@ pushTmpDir ORG.its
|
|||||||
if [[ "${strand[0]}" == "Forward" ]] ; then
|
if [[ "${strand[0]}" == "Forward" ]] ; then
|
||||||
cat ${QUERY}
|
cat ${QUERY}
|
||||||
else
|
else
|
||||||
fastarevcomp -f ${QUERY}
|
loginfo "Revert complement rDNA cluster cistron"
|
||||||
|
fastarevcomp ${QUERY}
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
logerror "Cannot determine the Cistron orientation"
|
logerror "Cannot determine the Cistron orientation"
|
||||||
|
Reference in New Issue
Block a user