immuneML.api.galaxy package

Submodules

immuneML.api.galaxy.DataSimulationTool module

class immuneML.api.galaxy.DataSimulationTool.DataSimulationTool(specification_path: Path, result_path: Path, **kwargs)[source]

Bases: GalaxyTool

prepare_specs()[source]

immuneML.api.galaxy.DatasetGenerationTool module

class immuneML.api.galaxy.DatasetGenerationTool.DatasetGenerationTool(specification_path: Path, result_path: Path, **kwargs)[source]

Bases: GalaxyTool

DatasetGenerationTool is an alternative to running ImmuneMLApp directly. It accepts a path to YAML specification and a path to the output directory and generates the dataset according to the given specification. The created dataset will be located under supplied output directory, under galaxy_dataset folder. The main dataset file will have the name of the dataset given in the specification and has an extension .yaml.

This tool is meant to be used as an endpoint for Galaxy tool that will create a Galaxy collection out of a dataset in immuneML format.

Specification for this tool is the same as for the DatasetExportInstruction, except it can create only one dataset with one format at the time.

immuneML.api.galaxy.GalaxyMLApplicationTool module

class immuneML.api.galaxy.GalaxyMLApplicationTool.GalaxyMLApplicationTool(specification_path: Path, result_path: Path, **kwargs)[source]

Bases: GalaxyTool

immuneML.api.galaxy.GalaxySimulationTool module

class immuneML.api.galaxy.GalaxySimulationTool.GalaxySimulationTool(specification_path: Path, result_path: Path, **kwargs)[source]

Bases: GalaxyTool

GalaxySimulationTool is an alternative to running immuneML with the simulation instruction directly. It accepts a YAML specification file and a path to the output directory. It implants the signals in the dataset that was provided either as an existing dataset with a set of files or in the random dataset as described in the specification file.

This tool is meant to be used as an endpoint for Galaxy tool that will create a Galaxy collection out of a dataset in immuneML format that can be readily used by other immuneML-based Galaxy tools.

The specification supplied for this tool is identical to immuneML specification, except that it can include only one instruction which has to be of type ‘Simulation’:

immuneML.api.galaxy.GalaxyTool module

class immuneML.api.galaxy.GalaxyTool.GalaxyTool(specification_path: Path, result_path: Path, **kwargs)[source]

Bases: object

run()[source]

immuneML.api.galaxy.GalaxyTrainMLModel module

class immuneML.api.galaxy.GalaxyTrainMLModel.GalaxyTrainMLModel(specification_path: Path, result_path: Path, **kwargs)[source]

Bases: GalaxyTool

immuneML.api.galaxy.GalaxyYamlTool module

class immuneML.api.galaxy.GalaxyYamlTool.GalaxyYamlTool(specification_path: Path, result_path: Path, **kwargs)[source]

Bases: GalaxyTool

update_specs()[source]

immuneML.api.galaxy.RepertoireClassificationTool module

class immuneML.api.galaxy.RepertoireClassificationTool.RepertoireClassificationTool(args, result_path: Path)[source]

Bases: GalaxyTool

immuneML.api.galaxy.Util module

class immuneML.api.galaxy.Util.Util[source]

Bases: object

static check_export_format(specs: dict, tool_name: str, instruction_name: str)[source]
static check_instruction_type(specs: dict, tool_name, expected_instruction) str[source]
static check_parameters(yaml_path: Path, output_dir: Path, kwargs, location)[source]
static check_paths(specs: dict, tool_name: str)[source]
static discover_dataset_path(dataset_name='dataset')[source]
static export_galaxy_dataset(dataset, result_path)[source]
static reformat_galaxy_dataset(galaxy_dataset_path)[source]
static remove_path_from_filename(file_path)[source]
static run_tool(yaml_path, result_path)[source]
static update_dataset_key(specs: dict, location, new_key='dataset')[source]
static update_result_paths(specs: dict, result_path: Path, yaml_path: Path)[source]

immuneML.api.galaxy.build_dataset_yaml module

immuneML.api.galaxy.build_yaml_from_arguments module

Module contents