# HG changeset patch # User iuc # Date 1768051027 0 # Node ID f09a77e52ae5d2e90ec6b27d0b636f4a1e932cd2 # Parent 0c3f56c85e9866359c6c2ec491a9f08910f29500 planemo upload for repository https://github.com/galaxyproject/tools-iuc/main/tools/swissmodel_modelling_api commit d35c7d4dbe93451605d81b8e4fea8923e78b70ae diff -r 0c3f56c85e98 -r f09a77e52ae5 sm_api_wrapper.py --- a/sm_api_wrapper.py Thu Dec 11 19:32:14 2025 +0000 +++ b/sm_api_wrapper.py Sat Jan 10 13:17:07 2026 +0000 @@ -286,14 +286,8 @@ metas = { "outdir": "", "target_sequences": "", - "token": "", } parser.add_argument( - "token", - help="Authentication token for SWISS-MODEL", - metavar=metas["token"], - ) - parser.add_argument( "outdir", help="Directory to store results in", metavar=metas["outdir"], @@ -377,12 +371,19 @@ """Run as script.""" opts = _parse_args() + token = os.getenv("SWISSMODEL_API_TOKEN") + if not token: + print( + "SWISS-MODEL token is not provided in credentials!", + file=sys.stderr, + ) + sys.exit(1) target_sequences = _defastarise_targets(opts.target_sequences) # determine class whsprr = None if opts.project_type.lower() == "automodel": whsprr = _AutoModelWhisperer( - target_sequences, opts.token, project_title=opts.project_title + target_sequences, token, project_title=opts.project_title ) elif opts.project_type.lower() == "alignment": template_sequence = _defastarise_targets([opts.template_sequence]) @@ -390,7 +391,7 @@ template_sequence = template_sequence[0] whsprr = _AlignmentWhisperer( target_sequences, - opts.token, + token, template_sequence, opts.template_seqres_offset, opts.pdb_id, @@ -401,7 +402,7 @@ elif opts.project_type.lower() == "usertemplate": whsprr = _UserTemplateWhisperer( target_sequences, - opts.token, + token, opts.template_file, project_title=opts.project_title, ) diff -r 0c3f56c85e98 -r f09a77e52ae5 swissmodel_api.xml --- a/swissmodel_api.xml Thu Dec 11 19:32:14 2025 +0000 +++ b/swissmodel_api.xml Sat Jan 10 13:17:07 2026 +0000 @@ -1,13 +1,20 @@ - + Fully automated protein structure homology-modelling + + 2.0.0 + 0 + swiss_model python requests + + + - - SWISS-MODEL account page. - ]]> - @@ -140,7 +141,7 @@ - + @@ -150,19 +151,7 @@ - - - - - - - - - - - - - + @@ -216,7 +205,7 @@ - + @@ -227,23 +216,7 @@ - - - - - - - - - - - - - - - - - + @@ -257,7 +230,7 @@ - + @@ -269,24 +242,7 @@ - - - - - - - - - - - - - - - - - - +