immuneML.pairwise_repertoire_comparison package
Submodules
immuneML.pairwise_repertoire_comparison.ComparisonData module
immuneML.pairwise_repertoire_comparison.ComparisonDataBatch module
- class immuneML.pairwise_repertoire_comparison.ComparisonDataBatch.ComparisonDataBatch(items: list, repertoire_index_mapping: Dict[str, int], path: Path, identifier: int, matrix: ndarray = None)[source]
Bases:
object
- Parameters:
matrix – array with dimension items x repertoires, where items are defined by comparison attributes specified in ComparisonData class and can include, for instance, receptor sequences or combinations of receptor sequences and V and J gene
items – the item names extracted from the repertoires in the dataset on which the repertoires are evaluated (e.g. sequences or combinations of sequences and genes
repertoire_index_mapping – a mapping between the repertoire identifier (a string) and a column number for faster access of columns (repertoire vectors w.r.t. given items) in the comparison data matrix where columns correspond to repertoires
path (Path) – path to directory where comp data is stored
identifier (int) – identifier of the batch
- identifier: int
- items: list
- matrix: ndarray = None
- path: Path
- repertoire_index_mapping: Dict[str, int]
immuneML.pairwise_repertoire_comparison.PairwiseRepertoireComparison module
- class immuneML.pairwise_repertoire_comparison.PairwiseRepertoireComparison.PairwiseRepertoireComparison(**kwargs)[source]
Bases:
object
- compare(dataset: RepertoireDataset, comparison_fn, comparison_fn_name)[source]
- compare_repertoires(**kwargs)
- create_comparison_data(**kwargs)
- memo_by_params(dataset: RepertoireDataset)[source]
- prepare_caching_params(dataset: RepertoireDataset)[source]