Mercurial > repos > iuc > tbl2gff3
annotate tbl2gff3.py @ 0:965674d88d34 draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
author | iuc |
---|---|
date | Tue, 07 Jul 2020 04:20:40 -0400 |
parents | |
children | 4a7f4b0cc0a3 |
rev | line source |
---|---|
0
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
1 #!/usr/bin/env python |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
2 import argparse |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
3 import csv |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
4 import sys |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
5 |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
6 from BCBio import GFF |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
7 from Bio.Seq import Seq |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
8 from Bio.SeqFeature import FeatureLocation, SeqFeature |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
9 from Bio.SeqRecord import SeqRecord |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
10 |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
11 |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
12 def c(row, v, default=None): |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
13 if v is None: |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
14 return default |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
15 |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
16 try: |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
17 _ = int(v) |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
18 return row[int(v) - 1] |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
19 except ValueError: |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
20 return v |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
21 |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
22 |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
23 def tbl2gff3( |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
24 table, |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
25 rid, |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
26 begin, |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
27 end, |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
28 source=None, |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
29 type=None, |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
30 score=None, |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
31 frame=None, |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
32 a=None, |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
33 strand_column=None, |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
34 strand_value=None, |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
35 ): |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
36 |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
37 records = {} |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
38 |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
39 for row in csv.reader(table, delimiter="\t"): |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
40 # print(', '.join(row)) |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
41 |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
42 # if we haven't seen this record before, populate it. |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
43 recid = c(row, rid) |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
44 if recid not in records: |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
45 records[recid] = SeqRecord(Seq("ACTG"), id=recid) |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
46 |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
47 r = records[recid] |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
48 q = {} |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
49 if c(row, score) is not None: |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
50 q["score"] = float(c(row, score)) |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
51 |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
52 q["source"] = c(row, source, "tbl2gff3") |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
53 |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
54 _str = None |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
55 if strand_column is not None: |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
56 _str = int(c(row, strand_column)) |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
57 elif strand_value is not None: |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
58 _str = int(strand_value) |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
59 |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
60 for x in a: |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
61 k, v = x.split(":", 1) |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
62 _v = c(row, v) |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
63 if k in q: |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
64 q[k].append(_v) |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
65 else: |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
66 q[k] = [_v] |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
67 |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
68 f = SeqFeature( |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
69 FeatureLocation(int(c(row, begin)), int(c(row, end))), |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
70 type=c(row, type), |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
71 strand=_str, |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
72 qualifiers=q, |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
73 ) |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
74 r.features.append(f) |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
75 |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
76 return records |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
77 |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
78 |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
79 if __name__ == "__main__": |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
80 parser = argparse.ArgumentParser(description="Convert tables to gff3", epilog="") |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
81 parser.add_argument("table", type=argparse.FileType("r"), help="Tabular Input") |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
82 parser.add_argument("rid", help="id column") |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
83 parser.add_argument("begin", help="begin column") |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
84 parser.add_argument("end", help="end column") |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
85 parser.add_argument("--type", help="feature type column") |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
86 parser.add_argument("--score", help="score column") |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
87 parser.add_argument("--source", help="source column") |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
88 parser.add_argument("--strand_column", help="strand column") |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
89 parser.add_argument("--strand_value", help="strand value") |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
90 # parser.add_argument('--frame', help='frame column') |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
91 parser.add_argument("-a", action="append", help="attribute column (-a k:v)") |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
92 args = parser.parse_args() |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
93 |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
94 for rid, rec in tbl2gff3(**vars(args)).items(): |
965674d88d34
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/tbl2gff3 commit 725ff8b6a4f01bf532052ce46400f529551a317d"
iuc
parents:
diff
changeset
|
95 GFF.write([rec], sys.stdout) |