added cds/tools/compare
Former-commit-id: 07fb256bf17db3f0ffc1730b0383f8255fbb9129 Former-commit-id: fd6a1fe72a39c5633c2f9fb6de09af979c2a48f3
This commit is contained in:
29
detectors/cds/tools/compare/lib/gbk.oneliner.awk
Normal file
29
detectors/cds/tools/compare/lib/gbk.oneliner.awk
Normal file
@ -0,0 +1,29 @@
|
||||
#
|
||||
# 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
|
||||
}
|
Reference in New Issue
Block a user