Debian Codegraph @

gff2xml

raw
1 #!/bin/sh
2
3 # Public domain notice for all NCBI EDirect scripts is located at:
4 # https://www.ncbi.nlm.nih.gov/books/NBK179288/#chapter6.Public_Domain_Notice
5
6 tbl2xml -rec Rec SeqID Source Type Start End Score Strand Phase Attributes |
7 xtract -rec Rec -pattern Rec -LIN "+" \
8 -division Rec -pkg Common -wrp Line -element "&LIN" \
9 -group "Rec/*" -TAG "?" -VAL "~" \
10 -block "*" -if "&TAG" -is-not Attributes -wrp "&TAG" -element "&VAL" \
11 -division Rec -pkg Context -wrp Item -with ";" -split Attributes |
12 xtract -set GFFSet -rec GFF -pattern Rec \
13 -group "Common/*" -element "*" \
14 -group Context -pkg Attributes \
15 -block Item -TAG "Item[|=]" -wrp "&TAG" -element "Item[=|]" |
16 transmute -format