fixed too many partial CDS bug
Former-commit-id: d733a46f4e92f755f38e452f03a28062de6739f1 Former-commit-id: 36bdc324d2b9a0491d07d40a7e68a4cf7ea73984
This commit is contained in:
28
detectors/cds/tools/lib/embl.oneliner.awk
Normal file
28
detectors/cds/tools/lib/embl.oneliner.awk
Normal file
@ -0,0 +1,28 @@
|
||||
#
|
||||
# embl oneLiner
|
||||
#
|
||||
|
||||
/^FT / {
|
||||
InFeat = 1
|
||||
}
|
||||
|
||||
(InFeat == 0) && ($1 != "CC") && ($1 == pkey) && /^.. [^ ]/ {
|
||||
line = line " " substr($0, 6)
|
||||
next
|
||||
}
|
||||
|
||||
(InFeat == 1) && /^FT [^\/]/ {
|
||||
line = line "" substr($0, 22)
|
||||
next
|
||||
}
|
||||
|
||||
{
|
||||
if (line != "") print line
|
||||
line = $0
|
||||
pkey = $1
|
||||
next
|
||||
}
|
||||
|
||||
END {
|
||||
if (line != "") print line
|
||||
}
|
Reference in New Issue
Block a user