Source code for immuneML.api.galaxy.RepertoireClassificationTool

from pathlib import Path

from immuneML.api.galaxy.GalaxyTool import GalaxyTool
from immuneML.api.galaxy.build_yaml_from_arguments import main
from immuneML.app.ImmuneMLApp import ImmuneMLApp
from immuneML.util.PathBuilder import PathBuilder


[docs]class RepertoireClassificationTool(GalaxyTool): def __init__(self, args, result_path: Path): self.args = args super().__init__(None, result_path) def _run(self): yaml_path = main(self.args) PathBuilder.build(self.result_path) app = ImmuneMLApp(yaml_path, self.result_path) output_file_path = app.run() return output_file_path