Mercurial > repos > bgruening > augustus_training
annotate extract_features.py @ 4:6519ebe25019 draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 211061259f97dfbeb080aaf4713a21f64a1742e1"
author | iuc |
---|---|
date | Fri, 20 Dec 2019 14:09:14 -0500 |
parents | 86c89c3bd99d |
children | 7be22100e5e1 |
rev | line source |
---|---|
0
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
1 #!/usr/bin/env python |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
2 |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
3 import argparse |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
4 import sys |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
5 import textwrap |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
6 |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
7 |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
8 def main( args ): |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
9 """ |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
10 Extract the protein and coding section from an augustus gff, gtf file |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
11 Example file: |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
12 HS04636 AUGUSTUS stop_codon 6901 6903 . + 0 Parent=g1.t1 |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
13 HS04636 AUGUSTUS transcription_end_site 8857 8857 . + . Parent=g1.t1 |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
14 # protein sequence = [MLARALLLCAVLALSHTANPCCSHPCQNRGVCMSVGFDQYKCDCTRTGFYGENCSTPEFLTRIKLFLKPTPNTVHYIL |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
15 # THFKGFWNVVNNIPFLRNAIMSYVLTSRSHLIDSPPTYNADYGYKSWEAFSNLSYYTRALPPVPDDCPTPLGVKGKKQLPDSNEIVEKLLLRRKFIPD |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
16 # PQGSNMMFAFFAQHFTHQFFKTDHKRGPAFTNGLGHGVDLNHIYGETLARQRKLRLFKDGKMKYQIIDGEMYPPTVKDTQAEMIYPPQVPEHLRFAVG |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
17 # QEVFGLVPGLMMYATIWLREHNRVCDVLKQEHPEWGDEQLFQTSRLILIGETIKIVIEDYVQHLSGYHFKLKFDPELLFNKQFQYQNRIAAEFNTLYH |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
18 # WHPLLPDTFQIHDQKYNYQQFIYNNSILLEHGITQFVESFTRQIAGRVAGGRNVPPAVQKVSQASIDQSRQMKYQSFNEYRKRFMLKPYESFEELTGE |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
19 # KEMSAELEALYGDIDAVELYPALLVEKPRPDAIFGETMVEVGAPFSLKGLMGNVICSPAYWKPSTFGGEVGFQIINTASIQSLICNNVKGCPFTSFSV |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
20 # PDPELIKTVTINASSSRSGLDDINPTVLLKERSTEL] |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
21 # end gene g1 |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
22 ### |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
23 # |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
24 # ----- prediction on sequence number 2 (length = 2344, name = HS08198) ----- |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
25 # |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
26 # Predicted genes for sequence number 2 on both strands |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
27 # start gene g2 |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
28 HS08198 AUGUSTUS gene 86 2344 1 + . ID=g2 |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
29 HS08198 AUGUSTUS transcript 86 2344 . + . ID=g2.t1;Parent=g2 |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
30 HS08198 AUGUSTUS transcription_start_site 86 86 . + . Parent=g2.t1 |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
31 HS08198 AUGUSTUS exon 86 582 . + . Parent=g2.t1 |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
32 HS08198 AUGUSTUS start_codon 445 447 . + 0 Parent=g2.t1 |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
33 """ |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
34 protein_seq = '' |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
35 coding_seq = '' |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
36 if args.protein: |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
37 po = open( args.protein, 'w+' ) |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
38 if args.codingseq: |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
39 co = open( args.codingseq, 'w+' ) |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
40 |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
41 for line in sys.stdin: |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
42 # protein- and coding-sequence are stored as comments |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
43 if line.startswith('#'): |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
44 line = line[2:].strip() |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
45 if line.startswith('start gene'): |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
46 gene_name = line[11:].strip() |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
47 |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
48 if protein_seq: |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
49 if line.endswith(']'): |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
50 protein_seq += line[:-1] |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
51 po.write( '>%s\n%s\n' % (gene_name, '\n'.join( textwrap.wrap( protein_seq, 80 ) ) ) ) |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
52 protein_seq = '' |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
53 else: |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
54 protein_seq += line |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
55 |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
56 if coding_seq: |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
57 if line.endswith(']'): |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
58 coding_seq += line[:-1] |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
59 co.write( '>%s\n%s\n' % (gene_name, '\n'.join( textwrap.wrap( coding_seq, 80 ) ) ) ) |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
60 coding_seq = '' |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
61 else: |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
62 coding_seq += line |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
63 |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
64 if args.protein and line.startswith('protein sequence = ['): |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
65 if line.endswith(']'): |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
66 protein_seq = line[20:-1] |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
67 po.write( '>%s\n%s\n' % (gene_name, '\n'.join( textwrap.wrap( protein_seq, 80 ) ) ) ) |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
68 protein_seq = '' |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
69 else: |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
70 line = line[20:] |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
71 protein_seq = line |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
72 |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
73 if args.codingseq and line.startswith('coding sequence = ['): |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
74 if line.endswith(']'): |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
75 coding_seq = line[19:-1] |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
76 co.write( '>%s\n%s\n' % (gene_name, '\n'.join( textwrap.wrap( coding_seq, 80 ) ) ) ) |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
77 coding_seq = '' |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
78 else: |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
79 line = line[19:] |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
80 coding_seq = line |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
81 |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
82 if args.codingseq: |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
83 co.close() |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
84 if args.protein: |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
85 po.close() |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
86 |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
87 |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
88 if __name__ == '__main__': |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
89 parser = argparse.ArgumentParser() |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
90 parser.add_argument('-p', '--protein', help='Path to the protein file.') |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
91 parser.add_argument('-c', '--codingseq', help='Path to the coding file.') |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
92 |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
93 args = parser.parse_args() |
86c89c3bd99d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/augustus commit 2896dcfd180800d00ea413a59264ef8b11788b8e
bgruening
parents:
diff
changeset
|
94 main( args ) |