Mercurial > repos > pablocarb > synbiodesign
comparison toolOptBioDes.py @ 30:0ad6fda90f41 draft default tip
planemo upload commit f74fd52b330cc7460d98121b9bb78c08ca915d1e
author | pablocarb |
---|---|
date | Thu, 29 Aug 2019 06:59:58 -0400 |
parents | 8f42eba7e2eb |
children |
comparison
equal
deleted
inserted
replaced
29:d854b21ada0c | 30:0ad6fda90f41 |
---|---|
53 cw = csv.writer(h) | 53 cw = csv.writer(h) |
54 cw.writerow( ['Size', 'Efficiency'] ) | 54 cw.writerow( ['Size', 'Efficiency'] ) |
55 cw.writerow( [res['data']['libsize'], res['data']['J']] ) | 55 cw.writerow( [res['data']['libsize'], res['data']['J']] ) |
56 print( 'Size:', res['data']['libsize'], 'Efficiency:', res['data']['J'] ) | 56 print( 'Size:', res['data']['libsize'], 'Efficiency:', res['data']['J'] ) |
57 | 57 |
58 def partsUploadSbol( partsfile, genesfile, size, outfile, diagfile, sbolOut, server ): | 58 def partsUploadSbol( partsfile, genesfile, size, outfile, diagfile, sbolOut, url ): |
59 files = { | 59 files = { |
60 'parts': open(partsfile, 'rb' ), | 60 'parts': open(partsfile, 'rb' ), |
61 'genes': open(genesfile, 'rb') | 61 'genes': open(genesfile, 'rb') |
62 } | 62 } |
63 values = {'size': size} | 63 values = {'size': size} |
78 | 78 |
79 | 79 |
80 if __name__ == "__main__": | 80 if __name__ == "__main__": |
81 parser = arguments() | 81 parser = arguments() |
82 arg = parser.parse_args() | 82 arg = parser.parse_args() |
83 assert os.path.exists(arg.infile) | |
84 if arg.sbolOut is None: | 83 if arg.sbolOut is None: |
85 sheetUpload( arg.infile, arg.size, arg.outfile, arg.diagfile, arg.server ) | 84 sheetUpload( arg.infile, arg.size, arg.outfile, arg.diagfile, arg.server ) |
86 else: | 85 else: |
87 partsUploadSbol( arg.partsfile, arg.genesfile, arg.size, arg.outfile, arg.diagfile, arg.sbolOut, arg.server ) | 86 partsUploadSbol( arg.partsfile, arg.genesfile, arg.size, |
87 arg.outfile, arg.diagfile, arg.sbolOut, arg.server ) |