immuneML.dsl.symbol_table package

Submodules

immuneML.dsl.symbol_table.SymbolTable module

class immuneML.dsl.symbol_table.SymbolTable.SymbolTable[source]

Bases: object

Symbol table contains all objects parsed from the specification in the following format:

symbol

symbol_type

item

config

e1

encoding

EncodingObject

{..}

-> SymbolTableEntry object

seq1

preprocessing

[ClonesPerRepertoireFilter(), MetadataRepertoireFilter()]

{..}

-> SymbolTableEntry object

add(symbol: str, symbol_type: immuneML.dsl.symbol_table.SymbolType.SymbolType, item, config: Optional[dict] = None)[source]
contains(symbol)[source]
get(symbol)[source]
get_by_type(symbol_type: immuneML.dsl.symbol_table.SymbolType.SymbolType) List[immuneML.dsl.symbol_table.SymbolTableEntry.SymbolTableEntry][source]
get_config(symbol)[source]
get_keys_by_type(symbol_type: immuneML.dsl.symbol_table.SymbolType.SymbolType) list[source]

immuneML.dsl.symbol_table.SymbolTableEntry module

class immuneML.dsl.symbol_table.SymbolTableEntry.SymbolTableEntry(symbol: str, symbol_type: immuneML.dsl.symbol_table.SymbolType.SymbolType, item, config: Optional[dict] = None)[source]

Bases: object

immuneML.dsl.symbol_table.SymbolType module

class immuneML.dsl.symbol_table.SymbolType.SymbolType(value)[source]

Bases: enum.Enum

An enumeration.

DATASET = 3
ENCODING = 4
INSTRUCTION = 8
ML_METHOD = 2
MOTIF = 0
OUTPUT = 9
PREPROCESSING = 7
REPORT = 5
SIGNAL = 1
SIMULATION = 6

Module contents