Add a patch for chloroplast annotation when no inverted repeats are

detected

Former-commit-id: 7e3ddd41cf0d0788223382fedbf45b183974233e
Former-commit-id: e5a8ceb825f78d243e37d22cd6b2e91f403c0ee8
This commit is contained in:
2016-05-02 15:32:28 +02:00
parent 8a1a1d57ba
commit 466308267e
3 changed files with 146 additions and 131 deletions

View File

@ -38,9 +38,16 @@ function lookForIR {
loginfo "Looking for long inverted repeats..."
repseek -c -p 0.001 -i ${QUERY} 2>> /dev/null > ${REPEATS}
loginfo " --> $(wc -l ${REPEATS} | awk '{print $1}') repeats identified"
nrepeat="$(wc -l ${REPEATS} | awk '{print $1}')"
loginfo "Done"
if (( nrepeat == 0 )) ; then
logwarning "No inverted repeat identified"
return 1
fi
loginfo " --> ${nrepeat} repeats identified"
loginfo "Marking and selecting the best inverted repeat..."
local IR=( $(${SELECTIR} ${MATCHES} ${REPEATS}) )
loginfo "Done"