Files
annotate/detectors/cds/tools/lib/embl.oneliner.awk
alain viari 9108ce75f1 fixed too many partial CDS bug
Former-commit-id: d733a46f4e92f755f38e452f03a28062de6739f1
Former-commit-id: 36bdc324d2b9a0491d07d40a7e68a4cf7ea73984
2015-11-10 22:15:01 +01:00

29 lines
345 B
Awk

#
# 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
}