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: pathlib.Path, identifier: int, matrix: Optional[numpy.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
: numpy.ndarray = None¶
-
path
: pathlib.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: immuneML.data_model.dataset.RepertoireDataset.RepertoireDataset, comparison_fn, comparison_fn_name)[source]¶
-
compare_repertoires
(**kwargs)¶
-
create_comparison_data
(**kwargs)¶
-
memo_by_params
(dataset: immuneML.data_model.dataset.RepertoireDataset.RepertoireDataset)[source]¶
-
prepare_caching_params
(dataset: immuneML.data_model.dataset.RepertoireDataset.RepertoireDataset)[source]¶
-