Debian Codegraph @

blst2tkns

raw
1 #!/bin/bash -norc
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 xtract -pattern Seq-align-set_E -SCORE "(-)" -IDX "+" \
7 -group score_E -if id/str -equals score -SCORE value/int \
8 -group exons_E \
9 -tab "\t" -lbl "index" -tab "\n" -element "&IDX" \
10 -tab "\t" -lbl "score" -tab "\n" -element "&SCORE" \
11 -tab "\t" -lbl "start" -tab "\n" -inc genomic-start \
12 -tab "\t" -lbl "stop" -tab "\n" -inc genomic-end \
13 -tab "\t" -lbl "strand" -tab "\n" -element product-strand \
14 -block "parts/*" -tab "\n" -element "?","~" \
15 -block parts -tab "\t" -lbl "end" -tab "\n" -lbl "0"