immuneML.dsl.instruction_parsers package

Submodules

immuneML.dsl.instruction_parsers.ApplyGenModelParser module

class immuneML.dsl.instruction_parsers.ApplyGenModelParser.ApplyGenModelParser[source]

Bases: object

Specification example for the ApplyGenModel instruction:

instruction_name:
    type: ApplyGenModel
    gen_examples_count: 100
    ml_config_path: ./config.zip
    reports: [data_rep1, ml_rep2]
parse(key: str, instruction: dict, symbol_table: SymbolTable, path: Path = None) → ApplyGenModelInstruction[source]

immuneML.dsl.instruction_parsers.ClusteringParser module

class immuneML.dsl.instruction_parsers.ClusteringParser.ClusteringParser[source]

Bases: object

parse(key: str, instruction: dict, symbol_table: SymbolTable, path: Path = None) → ClusteringInstruction[source]
immuneML.dsl.instruction_parsers.ClusteringParser.make_encoder_obj(symbol_table, encoding_key, dataset_key)[source]
immuneML.dsl.instruction_parsers.ClusteringParser.make_setting_obj(setting, valid_encodings, valid_clusterings, valid_dim_red, symbol_table, instruction)[source]
immuneML.dsl.instruction_parsers.ClusteringParser.parse_clustering_settings(key: str, instruction: dict, symbol_table: SymbolTable) → List[ClusteringSetting][source]
immuneML.dsl.instruction_parsers.ClusteringParser.parse_labels(key, instruction, dataset) → LabelConfiguration[source]
immuneML.dsl.instruction_parsers.ClusteringParser.parse_metrics(key: str, instruction: dict) → List[str][source]
immuneML.dsl.instruction_parsers.ClusteringParser.parse_reports(key, instruction, symbol_table) → List[Report][source]
immuneML.dsl.instruction_parsers.ClusteringParser.parse_sample_config(instruction) → SampleConfig[source]
immuneML.dsl.instruction_parsers.ClusteringParser.parse_stability_config(instruction) → StabilityConfig[source]

immuneML.dsl.instruction_parsers.DatasetExportParser module

class immuneML.dsl.instruction_parsers.DatasetExportParser.DatasetExportParser[source]

Bases: object

Specification of instruction with a random datasets:

definitions:
datasets:
my_generated_dataset: # a dataset to be exported in the given format

format: RandomRepertoireDataset params:

result_path: generated_dataset/ repertoire_count: 100 sequence_count_probabilities:

100: 0.5 120: 0.5

sequence_length_probabilities:

12: 0.333 13: 0.333 14: 0.333

labels:
immune_event_1:

yes: 0.5 no: 0.5

preprocessing_sequences:
my_preprocessing:
  • my_filter:
    ClonesPerRepertoireFilter:

    lower_limit: 110 upper_limit: 200

instructions:
my_instruction1: # instruction name

type: DatasetExport datasets: # list of datasets to export

  • my_generated_dataset

preprocessing_sequence: my_preprocessing_sequence number_of_processes: 4

OPTIONAL_KEYS = ['preprocessing_sequence', 'number_of_processes']
REQUIRED_KEYS = ['type', 'datasets']
parse(key: str, instruction: dict, symbol_table: SymbolTable, path: Path = None) → DatasetExportInstruction[source]

immuneML.dsl.instruction_parsers.ExploratoryAnalysisParser module

class immuneML.dsl.instruction_parsers.ExploratoryAnalysisParser.ExploratoryAnalysisParser[source]

Bases: object

parse(key: str, instruction: dict, symbol_table: SymbolTable, path: Path = None) → ExploratoryAnalysisInstruction[source]

immuneML.dsl.instruction_parsers.FeasibilitySummaryParser module

class immuneML.dsl.instruction_parsers.FeasibilitySummaryParser.FeasibilitySummaryParser[source]

Bases: object

parse(key: str, instruction: dict, symbol_table: SymbolTable, path: Path = None) → FeasibilitySummaryInstruction[source]

immuneML.dsl.instruction_parsers.LabelHelper module

class immuneML.dsl.instruction_parsers.LabelHelper.LabelHelper[source]

Bases: object

static check_label_format(labels: list, instruction_name: str, yaml_location: str)[source]
static create_label_config(labels: list, dataset: Dataset, instruction_name: str, yaml_location: str) → LabelConfiguration[source]

immuneML.dsl.instruction_parsers.LigoSimParser module

class immuneML.dsl.instruction_parsers.LigoSimParser.LigoSimParser[source]

Bases: object

parse(key: str, instruction: dict, symbol_table: SymbolTable, path: Path = None) → LigoSimInstruction[source]
immuneML.dsl.instruction_parsers.LigoSimParser.get_simulation_from_symbol_table(sim_key, symbol_table, location)[source]

immuneML.dsl.instruction_parsers.MLApplicationParser module

class immuneML.dsl.instruction_parsers.MLApplicationParser.MLApplicationParser[source]

Bases: object

Specification example for the MLApplication instruction:

instruction_name:
    type: MLApplication
    dataset: d1
    config_path: ./config.zip
    metrics:
    - accuracy
    - precision
    - recall
    number_of_processes: 4
parse(key: str, instruction: dict, symbol_table: SymbolTable, path: Path) → MLApplicationInstruction[source]

immuneML.dsl.instruction_parsers.SplitDatasetParser module

class immuneML.dsl.instruction_parsers.SplitDatasetParser.SplitDatasetParser[source]

Bases: object

parse(key: str, instruction: dict, symbol_table: SymbolTable, path: Path = None) → SplitDatasetInstruction[source]

immuneML.dsl.instruction_parsers.SubsamplingParser module

class immuneML.dsl.instruction_parsers.SubsamplingParser.SubsamplingParser[source]

Bases: object

parse(key: str, instruction: dict, symbol_table: SymbolTable, path: Path = None) → SubsamplingInstruction[source]

immuneML.dsl.instruction_parsers.TrainGenModelParser module

class immuneML.dsl.instruction_parsers.TrainGenModelParser.TrainGenModelParser[source]

Bases: object

parse(key: str, instruction: dict, symbol_table: SymbolTable, path: Path = None) → TrainGenModelInstruction[source]

immuneML.dsl.instruction_parsers.TrainMLModelParser module

class immuneML.dsl.instruction_parsers.TrainMLModelParser.TrainMLModelParser[source]

Bases: object

parse(key: str, instruction: dict, symbol_table: SymbolTable, path: Path = None) → TrainMLModelInstruction[source]

immuneML.dsl.instruction_parsers.ValidateClusteringParser module

class immuneML.dsl.instruction_parsers.ValidateClusteringParser.ValidateClusteringParser[source]

Bases: object

parse(key: str, instruction: dict, symbol_table: SymbolTable, path: Path = None) → ValidateClusteringInstruction[source]

Module contents