comparison toolfactory/rgToolFactory2.py @ 130:e8e8071c9d0c draft

Uploaded
author fubar
date Tue, 06 Apr 2021 03:12:56 +0000
parents c35ff02652bf
children 72d190989c68
comparison
equal deleted inserted replaced
129:c35ff02652bf 130:e8e8071c9d0c
27 import tarfile 27 import tarfile
28 import tempfile 28 import tempfile
29 import time 29 import time
30 30
31 31
32 from bioblend import ConnectionError
33 from bioblend import toolshed
34
32 import galaxyxml.tool as gxt 35 import galaxyxml.tool as gxt
33 import galaxyxml.tool.parameters as gxtp 36 import galaxyxml.tool.parameters as gxtp
37
34 import lxml 38 import lxml
39
35 import yaml 40 import yaml
36 from bioblend import ConnectionError
37 from bioblend import toolshed
38
39 41
40 myversion = "V2.2 February 2021" 42 myversion = "V2.2 February 2021"
41 verbose = True 43 verbose = True
42 debug = True 44 debug = True
43 toolFactoryURL = "https://github.com/fubar2/toolfactory" 45 toolFactoryURL = "https://github.com/fubar2/toolfactory"
522 num_dashes=ndash, 524 num_dashes=ndash,
523 ) 525 )
524 elif newtype == "integer": 526 elif newtype == "integer":
525 aparm = gxtp.IntegerParam( 527 aparm = gxtp.IntegerParam(
526 newname, 528 newname,
527 label=newname, 529 label=newlabel,
528 help=newhelp, 530 help=newhelp,
529 value=newval, 531 value=newval,
530 num_dashes=ndash, 532 num_dashes=ndash,
531 ) 533 )
532 elif newtype == "float": 534 elif newtype == "float":
533 aparm = gxtp.FloatParam( 535 aparm = gxtp.FloatParam(
534 newname, 536 newname,
535 label=newname, 537 label=newlabel,
536 help=newhelp, 538 help=newhelp,
537 value=newval, 539 value=newval,
538 num_dashes=ndash, 540 num_dashes=ndash,
539 ) 541 )
540 elif newtype == "boolean": 542 elif newtype == "boolean":
541 aparm = gxtp.BooleanParam( 543 aparm = gxtp.BooleanParam(
542 newname, 544 newname,
543 label=newname, 545 label=newlabel,
544 help=newhelp, 546 help=newhelp,
545 value=newval, 547 value=newval,
546 num_dashes=ndash, 548 num_dashes=ndash,
547 ) 549 )
548 else: 550 else: