Mercurial > repos > pablocarb > synbiodesign
diff toolOptBioDes.py @ 4:6dbb43bdf2f4 draft
planemo upload commit 6a252d04f4b2f79606ab6679b6a91f957e33da7b-dirty
author | pablocarb |
---|---|
date | Thu, 02 May 2019 07:46:26 -0400 |
parents | f3771c0a2327 |
children | 93eb36300900 |
line wrap: on
line diff
--- a/toolOptBioDes.py Thu May 02 07:23:22 2019 -0400 +++ b/toolOptBioDes.py Thu May 02 07:46:26 2019 -0400 @@ -17,6 +17,8 @@ parser = argparse.ArgumentParser(description='toolOptBioDes: Optimal SynBio Design. Pablo Carbonell, SYNBIOCHEM, 2019') parser.add_argument('infile', help='Input xlsx file (DoE specificiations).') + parser.add_argument('size', + help='Library size.') parser.add_argument('outfile', help='Output csv design file.') parser.add_argument('diagfile', @@ -30,9 +32,9 @@ res = json.loads( r.content.decode('utf-8') ) print( res ) -def sheetUpload(doefile, outfile, diagfile, url): +def sheetUpload(doefile, size, outfile, diagfile, url): files = { 'file': open(doefile, 'rb' ) } - values = {'size': 64} + values = {'size': int(size)} r = requests.post( os.path.join(url, 'Query' ), files=files, data=values ) res = json.loads( r.content.decode('utf-8') ) M = res['data']['M']