Debian Codegraph @

docs/source/services.rst

raw
1
2 SMRT Service commandline interface
3 ==================================
4
5 A high level client to the SMRT Link Services is accessible from `ServiceAccessLayer` in `pbcommand.services`.
6
7 Client Layer
8 ~~~~~~~~~~~~
9
10 Example:
11
12
13 .. code-block:: python
14
15 In [1]: from pbcommand.services import ServiceAccessLayer
16
17 In [2]: s = ServiceAccessLayer("smrtlink-alpha", 8081)
18
19 In [3]: s.get_status()
20 Out[3]:
21 {u'id': u'smrtlink_analysis',
22 u'message': u'Services have been up for 141 hours, 37 minutes and 13.138 seconds.',
23 u'uptime': 509833138,
24 u'user': u'secondarytest',
25 u'uuid': u'12e1c62a-99a4-46c1-b616-a327dc38525f',
26 u'version': u'0.1.8-3a66e4a'}
27
28 In [4]: jobs = s.get_analysis_jobs()
29
30 In [5]: j = s.get_analysis_job_by_id(3)
31
32 In [6]: j.state, j.name
33 Out[6]: ('SUCCESSFUL', 'sirv_isoseq')
34
35 In [7]: import pbcommand; pbcommand.get_version()
36 Out[7]: '0.4.9'
37
38
39 Commandline Tool Interface to Services
40 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
41
42 .. warning:: This has been migrated to scala in smrtflow_. Support for the python Client layer API will remain, however the python commandline tool is no longer installed by default and will be removed in a future version.
43
44 .. _smrtflow: https://github.com/PacificBiosciences/smrtflow