/usr/lib/python3/dist-packages/bioblend/galaxy/tool_data/__init__.py is in python3-bioblend 0.7.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | """
Contains possible interactions with the Galaxy Tool data tables
"""
from bioblend.galaxy.client import Client
class ToolDataClient(Client):
def __init__(self, galaxy_instance):
self.module = 'tool_data'
super(ToolDataClient, self).__init__(galaxy_instance)
def get_data_tables(self):
"""
Get the list of all data tables.
:rtype: list
:return: A list of dicts with details on individual data tables.
For example::
[{"model_class": "TabularToolDataTable", "name": "fasta_indexes"},
{"model_class": "TabularToolDataTable", "name": "bwa_indexes"}]
"""
return Client._get(self)
def show_data_table(self, data_table_id):
"""
Get details of a given data table.
:type data_table_id: str
:param data_table_id: ID of the data table
:rtype: dict
:return: A description of the given data table and its content.
For example::
{"columns": ["value", "dbkey", "name", "path"],
"fields": [["test id",
"test",
"test name",
"/opt/galaxy-dist/tool-data/test/seq/test id.fa"]],
"model_class": "TabularToolDataTable",
"name": "all_fasta"}
"""
return Client._get(self, id=data_table_id)
def delete_data_table(self, data_table_id, values):
"""
Delete an item from a data table.
:type data_table_id: str
:param data_table_id: ID of the data table
:type values: str
:param values: a "|" separated list of column contents, there must be a
value for all the columns of the data table
"""
payload = {}
payload['values'] = values
return Client._delete(self, payload, id=data_table_id)
|