Adds detection of RPS12 and managment of locus tags

Former-commit-id: b9b17708eaaa27580f1e99bd3c375d4b6aba4d79
Former-commit-id: 369361ffa58e65b19ab1005bdf7960924f24ca08
This commit is contained in:
2022-02-14 14:21:50 +01:00
parent 9648bbb874
commit 59fcad1c42
5 changed files with 132 additions and 4 deletions

View File

@ -497,10 +497,29 @@ pushTmpDir ORG.organnot
match($0,"^[0-9]* ");\
line=substr($0,RLENGTH+1);\
gsub("@","\n",line); \
print line}'
print line}' > "${RESULTS}.sorted.annot"
loginfo "Done."
if [[ "$idprefix" != "no" ]] ; then
loginfo "Adding locus tags..."
cat "${RESULTS}.sorted.annot" \
| $AwkCmd -v idprefix="$idprefix" '
BEGIN {n=1}
/^FT +\/locus_tag=""/ {
sub(/locus_tag=""/,"locus_tag=\""idprefix"_"n"\"",$0);
n++;
}
{
print $0
}
'
loginfo "Locus tags done."
else
loginfo "Clearing locus tags done."
egrep -v '^FT +\/locus_tag=""' \
"${RESULTS}.sorted.annot"
loginfo "Clearing of tags done."
fi
loginfo "Closing annotations table..."
echo "XX"