tooluniverse.graphql_tool moduleΒΆ

class tooluniverse.graphql_tool.DiseaseTargetScoreTool(tool_config, datasource_id=None)[source]ΒΆ

Bases: GraphQLTool

Tool to extract disease-target association scores from specific data sources

__init__(tool_config, datasource_id=None)[source]ΒΆ
run(arguments)[source]ΒΆ

Extract disease-target scores for a specific datasource Arguments should contain: efoId, datasourceId (optional), pageSize (optional)

class tooluniverse.graphql_tool.GraphQLTool(tool_config, endpoint_url)[source]ΒΆ

Bases: BaseTool

__init__(tool_config, endpoint_url)[source]ΒΆ
run(arguments)[source]ΒΆ

Execute the tool.

The default BaseTool implementation accepts an optional arguments mapping to align with most concrete tool implementations which expect a dictionary of inputs.

class tooluniverse.graphql_tool.OpentargetGeneticsTool(tool_config)[source]ΒΆ

Bases: GraphQLTool

__init__(tool_config)[source]ΒΆ
class tooluniverse.graphql_tool.OpentargetTool(tool_config)[source]ΒΆ

Bases: GraphQLTool

__init__(tool_config)[source]ΒΆ
run(arguments)[source]ΒΆ

Execute the tool.

The default BaseTool implementation accepts an optional arguments mapping to align with most concrete tool implementations which expect a dictionary of inputs.

class tooluniverse.graphql_tool.OpentargetToolDrugNameMatch(tool_config, drug_generic_tool=None)[source]ΒΆ

Bases: GraphQLTool

__init__(tool_config, drug_generic_tool=None)[source]ΒΆ
run(arguments)[source]ΒΆ

Execute the tool.

The default BaseTool implementation accepts an optional arguments mapping to align with most concrete tool implementations which expect a dictionary of inputs.

tooluniverse.graphql_tool.execute_query(endpoint_url, query, variables=None)[source]ΒΆ
tooluniverse.graphql_tool.remove_none_and_empty_values(json_obj)[source]ΒΆ

Remove all key-value pairs where the value is None or an empty list

tooluniverse.graphql_tool.validate_query(query_str, schema_str)[source]ΒΆ