immuneML.presentation.html package

Submodules

immuneML.presentation.html.DatasetExportHTMLBuilder module

class immuneML.presentation.html.DatasetExportHTMLBuilder.DatasetExportHTMLBuilder[source]

Bases: object

CSS_PATH = PosixPath('/Users/milenpa/PycharmProjects/BMIimmuneML/immuneML/presentation/html/templates/css/custom.css')
static build(state: DatasetExportState) Path[source]

Function that builds the HTML files based on the Simulation state. :param state: SimulationState object including all details of the Simulation instruction

Returns:

path to the main HTML file (which is located under state.result_path)

static make_html_map(state: DatasetExportState, base_path: Path) dict[source]

immuneML.presentation.html.ExploratoryAnalysisHTMLBuilder module

class immuneML.presentation.html.ExploratoryAnalysisHTMLBuilder.ExploratoryAnalysisHTMLBuilder[source]

Bases: object

A class that will make a HTML file(s) out of ExploratoryAnalysisState object to show what analysis took place in the ExploratoryAnalysisInstruction.

CSS_PATH = PosixPath('/Users/milenpa/PycharmProjects/BMIimmuneML/immuneML/presentation/html/templates/css/custom.css')
static build(state: ExploratoryAnalysisState) Path[source]

Function that builds the HTML files based on the ExploratoryAnalysis state. :param state: ExploratoryAnalysisState object with details and results of the instruction

Returns:

path to the main HTML file (which is located under state.result_path)

static make_html_map(state: ExploratoryAnalysisState, base_path: Path) dict[source]

immuneML.presentation.html.HPHTMLBuilder module

class immuneML.presentation.html.HPHTMLBuilder.HPHTMLBuilder[source]

Bases: object

A class that will make HTML file(s) out of TrainMLModelState object to show what analysis took place in the TrainMLModel.

CSS_PATH = PosixPath('/Users/milenpa/PycharmProjects/BMIimmuneML/immuneML/presentation/html/templates/css/custom.css')
NUM_DIGITS = 3
static build(state: TrainMLModelState = None) Path[source]

Function that builds the HTML files based on the HPOptimization state. :param state: HPOptimizationState object with all details on the optimization

Returns:

path to the main HTML file (index.html which is located under state.result_path)

immuneML.presentation.html.HTMLBuilder module

class immuneML.presentation.html.HTMLBuilder.HTMLBuilder[source]

Bases: object

Outputs HTML results of the analysis. This is currently the only defined format of presentation of results.

YAML specification:

definitions:
    ...
instructions:
    ...
output: # the output format
    format: HTML
static build(states: list, path: Path) Path[source]

immuneML.presentation.html.MLApplicationHTMLBuilder module

class immuneML.presentation.html.MLApplicationHTMLBuilder.MLApplicationHTMLBuilder[source]

Bases: object

CSS_PATH = PosixPath('/Users/milenpa/PycharmProjects/BMIimmuneML/immuneML/presentation/html/templates/css/custom.css')
static build(state: MLApplicationState = None) str[source]
static make_html_map(state: MLApplicationState, base_path: Path) dict[source]

immuneML.presentation.html.MultiDatasetBenchmarkHTMLBuilder module

class immuneML.presentation.html.MultiDatasetBenchmarkHTMLBuilder.MultiDatasetBenchmarkHTMLBuilder[source]

Bases: object

CSS_PATH = PosixPath('/Users/milenpa/PycharmProjects/BMIimmuneML/immuneML/presentation/html/templates/css/custom.css')
static build(report_results: dict, result_path: Path, instruction_result_paths: dict) Path[source]

immuneML.presentation.html.SimulationHTMLBuilder module

immuneML.presentation.html.SubsamplingHTMLBuilder module

class immuneML.presentation.html.SubsamplingHTMLBuilder.SubsamplingHTMLBuilder[source]

Bases: object

A class that will make a HTML file(s) out of SubsamplingState object to show what analysis took place in the SubsamplingInstruction.

CSS_PATH = PosixPath('/Users/milenpa/PycharmProjects/BMIimmuneML/immuneML/presentation/html/templates/css/custom.css')
static build(state: SubsamplingState) str[source]

Function that builds the HTML files based on the Subsampling state. :param state: SubsamplingState object including all details of the Subsampling instruction

Returns:

path to the main HTML file (which is located under state.result_path)

static make_html_map(state: SubsamplingState, base_path: Path) dict[source]

immuneML.presentation.html.Util module

class immuneML.presentation.html.Util.Util[source]

Bases: object

static get_css_content(css_path: Path)[source]
static get_full_specs_path(base_path) str[source]
static get_logfile_path(base_path) str[source]
static get_table_string_from_csv(csv_path: Path, separator: str = ',', has_header: bool = True) str[source]
static get_table_string_from_csv_string(csv_string: str, separator: str = ',', has_header: bool = True) str[source]
static make_dataset_html_map(dataset, dataset_key='dataset')[source]
static make_downloadable_zip(base_path: Path, path_to_zip: Path, filename: str = '') str[source]
static to_dict_recursive(obj, base_path: Path)[source]
static update_report_paths(report_result: ReportResult, path: Path) ReportResult[source]

Module contents