run_tool#

pharmpy.tools.run_tool(name, *args, **kwargs)[source]#

Run tool workflow

Note

This is a general function that can run any tool. There is also one function for each specific tool. Please refer to the documentation of these for more specific information.

Parameters:
  • name (str) – Name of tool to run

  • args – Arguments to pass to tool

  • kwargs – Arguments to pass to tool

Returns:

Results – Results object for tool

Examples

>>> from pharmpy.modeling import *
>>> model = load_example_model("pheno")
>>> from pharmpy.tools import run_tool 
>>> res = run_tool("ruvsearch", model)