added cds/tools/compare
Former-commit-id: 07fb256bf17db3f0ffc1730b0383f8255fbb9129 Former-commit-id: fd6a1fe72a39c5633c2f9fb6de09af979c2a48f3
This commit is contained in:
28
detectors/cds/tools/compare/lib/embl.oneliner.awk
Normal file
28
detectors/cds/tools/compare/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