Files
annotate/detectors/cds/tools/lib/gbk.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

30 lines
307 B
Awk

#
# genbank oneLiner
#
/^ [^ ]/ {
line = line "" substr($0, 12)
next
}
/^ [^\/]/ {
line = line "" substr($0, 21)
next
}
/^ ORGANISM/ {
if (line != "") print line
line = $0 ";"
next
}
{
if (line != "") print line
line = $0
next
}
END {
print line
}