Add a better management of and create translation exception when required for initiation codon

Former-commit-id: 878d919fdaad16e6e2645b62b3a53ef5d5e1ef2b
Former-commit-id: 3c3647cf114438a1ea9c3ff8c44e67e367929776
This commit is contained in:
2023-04-29 07:04:09 +02:00
parent d6a97da963
commit 5a7b869170
2 changed files with 40 additions and 5 deletions

View File

@ -96,7 +96,9 @@ function Unk(s) {
/^c begin_entry/ {
Nexon = 0
FrameShift=0
nte = 0
delete Exon
delete TransExcep
next
}
@ -151,6 +153,12 @@ function Unk(s) {
next
}
/^e trans_exception/ {
TransExcep[++nte] = "(pos:"$3",aa:"$4")" # /transl_except=(pos:<location>,aa:<amino_acid>)
next
}
/^c end_entry/ {
GeneName = Unk(GeneName)
@ -185,6 +193,10 @@ function Unk(s) {
QQualifier("pseudogene","unknown")
QQualifier("note","nonfunctional due to stop codon")
}
for (ie = 1 ; ie <= nte; ie++) {
SQualifier("transl_except", TransExcep[ie])
}
QQualifier("translation", Translat)
}