immuneML.workflows.instructions.dataset_generation package
Submodules
immuneML.workflows.instructions.dataset_generation.DatasetExportInstruction module
- class immuneML.workflows.instructions.dataset_generation.DatasetExportInstruction.DatasetExportInstruction(datasets: List[immuneML.data_model.dataset.Dataset.Dataset], exporters: List[immuneML.IO.dataset_export.DataExporter.DataExporter], preprocessing_sequence: Optional[List[immuneML.preprocessing.Preprocessor.Preprocessor]] = None, result_path: Optional[pathlib.Path] = None, name: Optional[str] = None)[source]
Bases:
immuneML.workflows.instructions.Instruction.Instruction
DatasetExport instruction takes a list of datasets as input, optionally applies preprocessing steps, and outputs the data in specified formats.
- Parameters
datasets (list) – a list of datasets to export in all given formats
preprocessing_sequence (str) – which preprocessing sequence to use on the dataset(s), this item is optional and does not have to be specified.
specified (When) –
datasets. (the same preprocessing sequence will be applied to all) –
formats (list) – a list of formats in which to export the datasets. Valid formats are class names of any non-abstract class inheriting
DataExporter
.
YAML specification:
my_dataset_export_instruction: # user-defined instruction name type: DatasetExport # which instruction to execute datasets: # list of datasets to export - my_generated_dataset - my_dataset_from_adaptive preprocessing_sequence: my_preprocessing_sequence export_formats: # list of formats to export the datasets to - AIRR - ImmuneML
- run(result_path: pathlib.Path) immuneML.workflows.instructions.dataset_generation.DatasetExportState.DatasetExportState [source]
immuneML.workflows.instructions.dataset_generation.DatasetExportState module
- class immuneML.workflows.instructions.dataset_generation.DatasetExportState.DatasetExportState(datasets: List[immuneML.data_model.dataset.Dataset.Dataset], formats: List[str], preprocessing_sequence: List[immuneML.preprocessing.Preprocessor.Preprocessor], paths: dict, result_path: pathlib.Path, name: str)[source]
Bases:
object
- datasets: List[immuneML.data_model.dataset.Dataset.Dataset]
- formats: List[str]
- name: str
- paths: dict
- preprocessing_sequence: List[immuneML.preprocessing.Preprocessor.Preprocessor]
- result_path: pathlib.Path