|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +############################################################ |
| 3 | +# |
| 4 | +# Autogenerated by the KBase type compiler - |
| 5 | +# any changes made here will be overwritten |
| 6 | +# |
| 7 | +############################################################ |
| 8 | + |
| 9 | +from __future__ import print_function |
| 10 | +# the following is a hack to get the baseclient to import whether we're in a |
| 11 | +# package or not. This makes pep8 unhappy hence the annotations. |
| 12 | +try: |
| 13 | + # baseclient and this client are in a package |
| 14 | + from .baseclient import BaseClient as _BaseClient # @UnusedImport |
| 15 | +except ImportError: |
| 16 | + # no they aren't |
| 17 | + from baseclient import BaseClient as _BaseClient # @Reimport |
| 18 | + |
| 19 | + |
| 20 | +class cb_annotation_ontology_api(object): |
| 21 | + |
| 22 | + def __init__( |
| 23 | + self, url=None, timeout=30 * 60, user_id=None, |
| 24 | + password=None, token=None, ignore_authrc=False, |
| 25 | + trust_all_ssl_certificates=False, |
| 26 | + auth_svc='https://ci.kbase.us/services/auth/api/legacy/KBase/Sessions/Login', |
| 27 | + service_ver='dev', |
| 28 | + async_job_check_time_ms=100, async_job_check_time_scale_percent=150, |
| 29 | + async_job_check_max_time_ms=300000): |
| 30 | + if url is None: |
| 31 | + raise ValueError('A url is required') |
| 32 | + self._service_ver = service_ver |
| 33 | + self._client = _BaseClient( |
| 34 | + url, timeout=timeout, user_id=user_id, password=password, |
| 35 | + token=token, ignore_authrc=ignore_authrc, |
| 36 | + trust_all_ssl_certificates=trust_all_ssl_certificates, |
| 37 | + auth_svc=auth_svc, |
| 38 | + async_job_check_time_ms=async_job_check_time_ms, |
| 39 | + async_job_check_time_scale_percent=async_job_check_time_scale_percent, |
| 40 | + async_job_check_max_time_ms=async_job_check_max_time_ms) |
| 41 | + |
| 42 | + def get_annotation_ontology_events(self, params, context=None): |
| 43 | + """ |
| 44 | + Retrieves annotation ontology events in a standardized form cleaning up inconsistencies in underlying data |
| 45 | + :param params: instance of type "GetAnnotationOntologyEventsParams" |
| 46 | + -> structure: parameter "input_ref" of String, parameter |
| 47 | + "input_workspace" of String, parameter "query_events" of list of |
| 48 | + String, parameter "query_genes" of list of String, parameter |
| 49 | + "standardize_modelseed_ids" of Long |
| 50 | + :returns: instance of type "GetAnnotationOntologyEventsOutput" -> |
| 51 | + structure: parameter "events" of list of type |
| 52 | + "AnnotationOntologyEvent" -> structure: parameter "event_id" of |
| 53 | + String, parameter "description" of String, parameter "ontology_id" |
| 54 | + of String, parameter "method" of String, parameter |
| 55 | + "method_version" of String, parameter "timestamp" of String, |
| 56 | + parameter "feature_types" of mapping from String to String, |
| 57 | + parameter "ontology_terms" of mapping from String to list of type |
| 58 | + "AnnotationOntologyTerm" -> structure: parameter "term" of String, |
| 59 | + parameter "modelseed_ids" of list of String, parameter |
| 60 | + "evidence_only" of Long, parameter "evidence" of type "Evidence" |
| 61 | + -> structure: parameter "reference" of tuple of size 2: parameter |
| 62 | + "entity_type" of String, parameter "ref_entity" of String, |
| 63 | + parameter "scores" of mapping from String to Double |
| 64 | + """ |
| 65 | + return self._client.run_job('cb_annotation_ontology_api.get_annotation_ontology_events', |
| 66 | + [params], self._service_ver, context) |
| 67 | + |
| 68 | + def add_annotation_ontology_events(self, params, context=None): |
| 69 | + """ |
| 70 | + Adds a new annotation ontology event to a genome or AMA |
| 71 | + :param params: instance of type "AddAnnotationOntologyEventsParams" |
| 72 | + -> structure: parameter "input_ref" of String, parameter |
| 73 | + "input_workspace" of String, parameter "output_name" of String, |
| 74 | + parameter "output_workspace" of String, parameter "clear_existing" |
| 75 | + of Long, parameter "overwrite_matching" of Long, parameter |
| 76 | + "events" of list of type "AnnotationOntologyEvent" -> structure: |
| 77 | + parameter "event_id" of String, parameter "description" of String, |
| 78 | + parameter "ontology_id" of String, parameter "method" of String, |
| 79 | + parameter "method_version" of String, parameter "timestamp" of |
| 80 | + String, parameter "feature_types" of mapping from String to |
| 81 | + String, parameter "ontology_terms" of mapping from String to list |
| 82 | + of type "AnnotationOntologyTerm" -> structure: parameter "term" of |
| 83 | + String, parameter "modelseed_ids" of list of String, parameter |
| 84 | + "evidence_only" of Long, parameter "evidence" of type "Evidence" |
| 85 | + -> structure: parameter "reference" of tuple of size 2: parameter |
| 86 | + "entity_type" of String, parameter "ref_entity" of String, |
| 87 | + parameter "scores" of mapping from String to Double |
| 88 | + :returns: instance of type "AddAnnotationOntologyEventsOutput" -> |
| 89 | + structure: parameter "output_ref" of String |
| 90 | + """ |
| 91 | + return self._client.run_job('cb_annotation_ontology_api.add_annotation_ontology_events', |
| 92 | + [params], self._service_ver, context) |
| 93 | + |
| 94 | + def status(self, context=None): |
| 95 | + return self._client.run_job('cb_annotation_ontology_api.status', |
| 96 | + [], self._service_ver, context) |
0 commit comments