| Name | immuneML-dev JSON |
| Version |
0.0.5
JSON |
| download |
| home_page | https://github.com/uio-bmi/immuneML |
| Summary | immuneML is a software platform for machine learning analysis of immune receptor repertoires. |
| upload_time | 2023-10-31 13:28:58 |
| maintainer | |
| docs_url | None |
| author | immuneML Team |
| requires_python | >=3.7 |
| license | |
| keywords |
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# immuneML


[](https://docs.airr-community.org/en/stable/swtools/airr_swtools_standard.html)
---
**NOTE**: This is a development version of immuneML that includes integration with Galaxy tools. To use the main immuneML (recommended), see the package immuneML at https://pypi.org/project/immuneML/.
---
immuneML is a platform for machine learning-based analysis and
classification of adaptive immune receptors and repertoires (AIRR).
It supports the analyses of experimental B- and T-cell receptor data,
as well as synthetic data for benchmarking purposes.
In immuneML, users can define flexible workflows supporting different
machine learning libraries (such as scikit-learn or PyTorch), benchmarking of different approaches, numerous reports
of data characteristics, ML algorithms and their predictions, and
visualizations of results.
Additionally, users can extend the platform by defining their own data
representations, ML models, reports and visualizations.
Useful links:
- Main website: https://immuneml.uio.no
- Documentation: https://docs.immuneml.uio.no
- Galaxy web interface: https://galaxy.immuneml.uiocloud.no
## Installation
immuneML can be installed directly [using pip](<https://pypi.org/project/immuneML/>).
immuneML uses Python 3.7 or later. We recommend installing immuneML inside a virtual environment.
For more detailed instructions (virtual environment, troubleshooting, Docker, developer installation), please see the [installation documentation](https://docs.immuneml.uio.no/installation/install_with_package_manager.html).
### Installation using pip
To install the immuneML core package, run:
```bash
pip install immuneML
```
Alternatively, to use the TCRdistClassifier ML method and corresponding TCRdistMotifDiscovery report, install immuneML with the optional TCRdist extra:
```bash
pip install immuneML[TCRdist]
```
Optionally, if you want to use the DeepRC ML method and and corresponding DeepRCMotifDiscovery report, you also
have to install DeepRC dependencies using the [requirements_DeepRC.txt](https://raw.githubusercontent.com/uio-bmi/immuneML/master/requirements_DeepRC.txt) file.
Important note: DeepRC uses PyTorch functionalities that depend on GPU. Therefore, DeepRC does not work on a CPU.
To install the DeepRC dependencies, run:
```bash
pip install -r requirements_DeepRC.txt --no-dependencies
```
### Validating the installation
To validate the installation, run:
```bash
immune-ml -h
```
This should display a help message explaining immuneML usage.
To quickly test out whether immuneML is able to run, try running the quickstart command:
```bash
immune-ml-quickstart ./quickstart_results/
```
This will generate a synthetic dataset and run a simple machine machine learning analysis
on the generated data. The results folder will contain two sub-folders: one for the generated dataset (`synthetic_dataset`)
and one for the results of the machine learning analysis (`machine_learning_analysis`).
The files named `specs.yaml` are the input files for immuneML that describe how to generate
the dataset and how to do the machine learning analysis. The `index.html` files can be used
to navigate through all the results that were produced.
## Usage
### Quickstart
The quickest way to familiarize yourself with immuneML usage is to follow
one of the [Quickstart tutorials](https://docs.immuneml.uio.no/quickstart.html).
These tutorials provide a step-by-step guide on how to use immuneML for a
simple machine learning analysis on an adaptive immune receptor repertoire (AIRR) dataset,
using either the command line tool or the [Galaxy web interface](https://galaxy.immuneml.uiocloud.no).
### Overview of input, analyses and results
The figure below shows an overview of immuneML usage.
All parameters for an immuneML analysis are defined in the a YAML specification file.
In this file, the settings of the analysis components are defined (also known as `definitions`,
shown in six different colors in the figure).
Additionally, the YAML file describes one or more `instructions`, which are workflows that are
applied to the defined analysis components.
Each instruction uses at least a dataset component, and optionally additional components.
AIRR datasets may either be [imported from files](https://docs.immuneml.uio.no/tutorials/how_to_import_the_data_to_immuneML.html),
or [generated synthetically](https://docs.immuneml.uio.no/tutorials/how_to_generate_a_random_repertoire_dataset.html) during runtime.
Each instruction produces different types of results, including trained ML models,
ML model predictions on a given dataset, plots or other reports describing the
dataset or trained models, and modified datasets.
To navigate over the results, immuneML generates a summary HTML file.

For a detailed explanation of the YAML specification file, see the tutorial [How to specify an analysis with YAML](https://docs.immuneml.uio.no/tutorials/how_to_specify_an_analysis_with_yaml.html).
See also the following tutorials for specific instructions:
- [Training ML models](https://docs.immuneml.uio.no/tutorials/how_to_train_and_assess_a_receptor_or_repertoire_classifier.html) for repertoire classification (e.g., disease prediction) or receptor sequence classification (e.g., antigen binding prediction). In immuneML, the performance of different machine learning (ML) settings can be compared by nested cross-validation. These ML settings consist of data preprocessing steps, encodings and ML models and their hyperparameters.
- [Exploratory analysis](https://docs.immuneml.uio.no/tutorials/how_to_perform_exploratory_analysis.html) of datasets by applying preprocessing and encoding, and plotting descriptive statistics without training ML models.
- [Simulating](https://docs.immuneml.uio.no/tutorials/how_to_simulate_antigen_signals_in_airr_datasets.html) immune events, such as disease states, into experimental or synthetic repertoire datasets. By implanting known immune signals into a given dataset, a ground truth benchmarking dataset is created. Such a dataset can be used to test the performance of ML settings under known conditions.
- [Applying trained ML models](https://docs.immuneml.uio.no/tutorials/how_to_apply_to_new_data.html) to new datasets with unknown class labels.
- And [other tutorials](https://docs.immuneml.uio.no/tutorials.html)
### Command line usage
The `immune-ml` command takes only two parameters: the YAML specification file and a result path.
An example is given here:
```bash
immune-ml path/to/specification.yaml result/folder/path/
```
For each instruction specified in the YAML specification file, a subfolder is created in the
`result/folder/path`. Each subfolder will contain:
- An `index.html` file which shows an overview of the results produced by that instruction. Inspecting the results of an immuneML analysis typically starts here.
- A copy of the used YAML specification (`full_specification.yaml`) with all default parameters explicitly set.
- A folder containing all raw results produced by the instruction.
- A folder containing the imported dataset(s) in optimized binary (Pickle) format.
## Support
We will prioritize fixing important bugs, and try to answer any questions as soon as possible. We may implement suggested features and enhancements as time permits.
If you run into problems when using immuneML, please see [the documentation](https://docs.immuneml.uio.no/latest/). In particular, we recommend you check out:
- The [Quickstart tutorial](https://docs.immuneml.uio.no/latest/quickstart.html) for new users
- The [Troubleshooting](https://docs.immuneml.uio.no/latest/troubleshooting.html) page
If this does not answer your question, you can contact us via:
- Twitter [`@immuneml`](https://twitter.com/immuneml)
- Email [`contact@immuneml.uio.no`](mailto:contact@immuneml.uio.no)
To report a potential bug or suggest new features, please [submit an issue on GitHub](https://github.com/uio-bmi/immuneML/issues).
If you would like to make contributions, for example by adding a new ML method, encoding, report or preprocessing, please [see our developer documentation](https://docs.immuneml.uio.no/latest/developer_docs.html) and [submit a pull request](https://github.com/uio-bmi/compairr/pulls).
## Requirements
- [Python 3.7 or later](https://www.python.org/)
- Python packages:
- [airr](https://pypi.org/project/airr/) (1 or higher)
- [dill](https://pypi.org/project/dill/) (0.3 or higher)
- [editdistance](https://pypi.org/project/editdistance/) (0.5.3 or higher)
- [fishersapi](https://pypi.org/project/fishersapi/)
- [gensim](https://pypi.org/project/gensim/) (3.8 or higher)
- [logomaker](https://pypi.org/project/logomaker/) (0.8 or higher)
- [matplotlib](https://matplotlib.org) (3.1 or higher)
- [matplotlib-venn](https://pypi.org/project/matplotlib-venn/) (0.11 or higher)
- [numpy](https://www.numpy.org/) (1.18 or higher)
- [pandas](https://pandas.pydata.org/) (1 or higher)
- [plotly](https://plotly.com/python/) (4 or higher)
- [pystache](https://pypi.org/project/pystache/) (0.5.4)
- [Pytorch](https://pytorch.org/) (1.5.1 or higher)
- [PyYAML](https://pyyaml.org) (5.3 or higher)
- [regex](https://pypi.org/project/regex/)
- [scikit-learn](https://scikit-learn.org/) (0.23 or higher)
- [scipy](https://www.scipy.org)
- [tzlocal](https://pypi.org/project/tzlocal/)
- Optional dependencies when using DeepRC:
- [DeepRC](https://github.com/ml-jku/DeepRC) (0.0.1)
- [widis-lstm-tools](https://github.com/widmi/widis-lstm-tools) (0.4)
- [tqdm](https://tqdm.github.io/) (0.24 or higher)
- [h5py](https://www.h5py.org/)
- [tensorboard](https://www.tensorflow.org/tensorboard) (1.14.0 or higher)
- Optional dependencies when using TCRdist:
- [parasail](https://pypi.org/project/parasail/) (1.2)
- [tcrdist3](https://github.com/kmayerb/tcrdist3) (0.1.6 or higher)
# Citing immuneML
If you are using immuneML in any published work, please cite:
Pavlović, M., Scheffer, L., Motwani, K. et al. The immuneML ecosystem for machine learning analysis of adaptive immune
receptor repertoires. Nat Mach Intell 3, 936–944 (2021). https://doi.org/10.1038/s42256-021-00413-z
<hr>
© Copyright 2021-2022, Milena Pavlovic, Lonneke Scheffer, Keshav Motwani, Victor Greiff, Geir Kjetil Sandve
Raw data
{
"_id": null,
"home_page": "https://github.com/uio-bmi/immuneML",
"name": "immuneML-dev",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "",
"author": "immuneML Team",
"author_email": "milenpa@student.matnat.uio.no",
"download_url": "https://files.pythonhosted.org/packages/e9/61/434604d7340cf9f2d80becbf9924ac16f7f7c106f24a03bfa6a9566c2aa4/immuneML_dev-0.0.5.tar.gz",
"platform": null,
"description": "# immuneML\n\n\n\n[](https://docs.airr-community.org/en/stable/swtools/airr_swtools_standard.html)\n\n---\n\n **NOTE**: This is a development version of immuneML that includes integration with Galaxy tools. To use the main immuneML (recommended), see the package immuneML at https://pypi.org/project/immuneML/.\n\n---\n\nimmuneML is a platform for machine learning-based analysis and \nclassification of adaptive immune receptors and repertoires (AIRR).\n\nIt supports the analyses of experimental B- and T-cell receptor data,\nas well as synthetic data for benchmarking purposes.\n\nIn immuneML, users can define flexible workflows supporting different\nmachine learning libraries (such as scikit-learn or PyTorch), benchmarking of different approaches, numerous reports\nof data characteristics, ML algorithms and their predictions, and\nvisualizations of results.\n\nAdditionally, users can extend the platform by defining their own data \nrepresentations, ML models, reports and visualizations.\n\n\nUseful links:\n- Main website: https://immuneml.uio.no\n- Documentation: https://docs.immuneml.uio.no\n- Galaxy web interface: https://galaxy.immuneml.uiocloud.no\n\n\n\n## Installation\n\nimmuneML can be installed directly [using pip](<https://pypi.org/project/immuneML/>).\nimmuneML uses Python 3.7 or later. We recommend installing immuneML inside a virtual environment.\n\nFor more detailed instructions (virtual environment, troubleshooting, Docker, developer installation), please see the [installation documentation](https://docs.immuneml.uio.no/installation/install_with_package_manager.html).\n\n### Installation using pip\n\n\nTo install the immuneML core package, run:\n\n```bash\npip install immuneML\n```\n\nAlternatively, to use the TCRdistClassifier ML method and corresponding TCRdistMotifDiscovery report, install immuneML with the optional TCRdist extra:\n\n```bash\npip install immuneML[TCRdist]\n```\n\nOptionally, if you want to use the DeepRC ML method and and corresponding DeepRCMotifDiscovery report, you also\nhave to install DeepRC dependencies using the [requirements_DeepRC.txt](https://raw.githubusercontent.com/uio-bmi/immuneML/master/requirements_DeepRC.txt) file.\nImportant note: DeepRC uses PyTorch functionalities that depend on GPU. Therefore, DeepRC does not work on a CPU.\nTo install the DeepRC dependencies, run:\n\n```bash\npip install -r requirements_DeepRC.txt --no-dependencies\n```\n\n### Validating the installation\n\nTo validate the installation, run:\n\n```bash\nimmune-ml -h\n```\n\nThis should display a help message explaining immuneML usage.\n\nTo quickly test out whether immuneML is able to run, try running the quickstart command:\n\n```bash\nimmune-ml-quickstart ./quickstart_results/\n```\n\nThis will generate a synthetic dataset and run a simple machine machine learning analysis \non the generated data. The results folder will contain two sub-folders: one for the generated dataset (`synthetic_dataset`) \nand one for the results of the machine learning analysis (`machine_learning_analysis`). \nThe files named `specs.yaml` are the input files for immuneML that describe how to generate \nthe dataset and how to do the machine learning analysis. The `index.html` files can be used \nto navigate through all the results that were produced.\n\n## Usage \n\n### Quickstart\n\nThe quickest way to familiarize yourself with immuneML usage is to follow\none of the [Quickstart tutorials](https://docs.immuneml.uio.no/quickstart.html).\nThese tutorials provide a step-by-step guide on how to use immuneML for a \nsimple machine learning analysis on an adaptive immune receptor repertoire (AIRR) dataset,\nusing either the command line tool or the [Galaxy web interface](https://galaxy.immuneml.uiocloud.no). \n\n\n### Overview of input, analyses and results\n\nThe figure below shows an overview of immuneML usage. \nAll parameters for an immuneML analysis are defined in the a YAML specification file. \nIn this file, the settings of the analysis components are defined (also known as `definitions`, \nshown in six different colors in the figure). \nAdditionally, the YAML file describes one or more `instructions`, which are workflows that are\napplied to the defined analysis components. \nEach instruction uses at least a dataset component, and optionally additional components.\nAIRR datasets may either be [imported from files](https://docs.immuneml.uio.no/tutorials/how_to_import_the_data_to_immuneML.html), \nor [generated synthetically](https://docs.immuneml.uio.no/tutorials/how_to_generate_a_random_repertoire_dataset.html) during runtime.\n\nEach instruction produces different types of results, including trained ML models, \nML model predictions on a given dataset, plots or other reports describing the \ndataset or trained models, and modified datasets. \nTo navigate over the results, immuneML generates a summary HTML file. \n\n\n\n\nFor a detailed explanation of the YAML specification file, see the tutorial [How to specify an analysis with YAML](https://docs.immuneml.uio.no/tutorials/how_to_specify_an_analysis_with_yaml.html).\n\nSee also the following tutorials for specific instructions:\n- [Training ML models](https://docs.immuneml.uio.no/tutorials/how_to_train_and_assess_a_receptor_or_repertoire_classifier.html) for repertoire classification (e.g., disease prediction) or receptor sequence classification (e.g., antigen binding prediction). In immuneML, the performance of different machine learning (ML) settings can be compared by nested cross-validation. These ML settings consist of data preprocessing steps, encodings and ML models and their hyperparameters.\n- [Exploratory analysis](https://docs.immuneml.uio.no/tutorials/how_to_perform_exploratory_analysis.html) of datasets by applying preprocessing and encoding, and plotting descriptive statistics without training ML models.\n- [Simulating](https://docs.immuneml.uio.no/tutorials/how_to_simulate_antigen_signals_in_airr_datasets.html) immune events, such as disease states, into experimental or synthetic repertoire datasets. By implanting known immune signals into a given dataset, a ground truth benchmarking dataset is created. Such a dataset can be used to test the performance of ML settings under known conditions.\n- [Applying trained ML models](https://docs.immuneml.uio.no/tutorials/how_to_apply_to_new_data.html) to new datasets with unknown class labels.\n- And [other tutorials](https://docs.immuneml.uio.no/tutorials.html)\n\n\n### Command line usage \n\nThe `immune-ml` command takes only two parameters: the YAML specification file and a result path. \nAn example is given here:\n\n```bash\nimmune-ml path/to/specification.yaml result/folder/path/\n```\n\nFor each instruction specified in the YAML specification file, a subfolder is created in the \n`result/folder/path`. Each subfolder will contain:\n- An `index.html` file which shows an overview of the results produced by that instruction. Inspecting the results of an immuneML analysis typically starts here. \n- A copy of the used YAML specification (`full_specification.yaml`) with all default parameters explicitly set.\n- A folder containing all raw results produced by the instruction.\n- A folder containing the imported dataset(s) in optimized binary (Pickle) format.\n\n## Support\n\nWe will prioritize fixing important bugs, and try to answer any questions as soon as possible. We may implement suggested features and enhancements as time permits. \n\nIf you run into problems when using immuneML, please see [the documentation](https://docs.immuneml.uio.no/latest/). In particular, we recommend you check out:\n- The [Quickstart tutorial](https://docs.immuneml.uio.no/latest/quickstart.html) for new users\n- The [Troubleshooting](https://docs.immuneml.uio.no/latest/troubleshooting.html) page\n\nIf this does not answer your question, you can contact us via:\n- Twitter [`@immuneml`](https://twitter.com/immuneml)\n- Email [`contact@immuneml.uio.no`](mailto:contact@immuneml.uio.no)\n\nTo report a potential bug or suggest new features, please [submit an issue on GitHub](https://github.com/uio-bmi/immuneML/issues).\n\nIf you would like to make contributions, for example by adding a new ML method, encoding, report or preprocessing, please [see our developer documentation](https://docs.immuneml.uio.no/latest/developer_docs.html) and [submit a pull request](https://github.com/uio-bmi/compairr/pulls).\n\n## Requirements\n\n- [Python 3.7 or later](https://www.python.org/)\n- Python packages:\n - [airr](https://pypi.org/project/airr/) (1 or higher)\n - [dill](https://pypi.org/project/dill/) (0.3 or higher)\n - [editdistance](https://pypi.org/project/editdistance/) (0.5.3 or higher)\n - [fishersapi](https://pypi.org/project/fishersapi/)\n - [gensim](https://pypi.org/project/gensim/) (3.8 or higher)\n - [logomaker](https://pypi.org/project/logomaker/) (0.8 or higher)\n - [matplotlib](https://matplotlib.org) (3.1 or higher)\n - [matplotlib-venn](https://pypi.org/project/matplotlib-venn/) (0.11 or higher)\n - [numpy](https://www.numpy.org/) (1.18 or higher)\n - [pandas](https://pandas.pydata.org/) (1 or higher)\n - [plotly](https://plotly.com/python/) (4 or higher)\n - [pystache](https://pypi.org/project/pystache/) (0.5.4)\n - [Pytorch](https://pytorch.org/) (1.5.1 or higher)\n - [PyYAML](https://pyyaml.org) (5.3 or higher)\n - [regex](https://pypi.org/project/regex/) \n - [scikit-learn](https://scikit-learn.org/) (0.23 or higher)\n - [scipy](https://www.scipy.org)\n - [tzlocal](https://pypi.org/project/tzlocal/) \n- Optional dependencies when using DeepRC:\n - [DeepRC](https://github.com/ml-jku/DeepRC) (0.0.1)\n - [widis-lstm-tools](https://github.com/widmi/widis-lstm-tools) (0.4)\n - [tqdm](https://tqdm.github.io/) (0.24 or higher)\n - [h5py](https://www.h5py.org/) \n - [tensorboard](https://www.tensorflow.org/tensorboard) (1.14.0 or higher)\n- Optional dependencies when using TCRdist:\n - [parasail](https://pypi.org/project/parasail/) (1.2)\n - [tcrdist3](https://github.com/kmayerb/tcrdist3) (0.1.6 or higher)\n\n# Citing immuneML\n\nIf you are using immuneML in any published work, please cite:\n\nPavlovi\u0107, M., Scheffer, L., Motwani, K. et al. The immuneML ecosystem for machine learning analysis of adaptive immune \nreceptor repertoires. Nat Mach Intell 3, 936\u2013944 (2021). https://doi.org/10.1038/s42256-021-00413-z\n\n\n\n<hr>\n\n\n\u00a9 Copyright 2021-2022, Milena Pavlovic, Lonneke Scheffer, Keshav Motwani, Victor Greiff, Geir Kjetil Sandve\n\n\n",
"bugtrack_url": null,
"license": "",
"summary": "immuneML is a software platform for machine learning analysis of immune receptor repertoires.",
"version": "0.0.5",
"project_urls": {
"Homepage": "https://github.com/uio-bmi/immuneML"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c4caa0ed16a6fbbff39e9fdf037ecc47fb70e8afc2ebed3c6cceecfd80b4734c",
"md5": "dc1d441a8ec1dcfeaf3ce5bc17f6185c",
"sha256": "6e3927bae7d4acedec827f601f54db985bb8fca65f0ddf1cdd1ff0c0fcc9d2bc"
},
"downloads": -1,
"filename": "immuneML_dev-0.0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "dc1d441a8ec1dcfeaf3ce5bc17f6185c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 623610,
"upload_time": "2023-10-31T13:28:54",
"upload_time_iso_8601": "2023-10-31T13:28:54.803626Z",
"url": "https://files.pythonhosted.org/packages/c4/ca/a0ed16a6fbbff39e9fdf037ecc47fb70e8afc2ebed3c6cceecfd80b4734c/immuneML_dev-0.0.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e961434604d7340cf9f2d80becbf9924ac16f7f7c106f24a03bfa6a9566c2aa4",
"md5": "a4a4565144f52ec5b3532cf8736ef96a",
"sha256": "390982bc40d7b9d99297b8c5231a47646f52d92a681e5d2fdf2781107debda4f"
},
"downloads": -1,
"filename": "immuneML_dev-0.0.5.tar.gz",
"has_sig": false,
"md5_digest": "a4a4565144f52ec5b3532cf8736ef96a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 384920,
"upload_time": "2023-10-31T13:28:58",
"upload_time_iso_8601": "2023-10-31T13:28:58.239356Z",
"url": "https://files.pythonhosted.org/packages/e9/61/434604d7340cf9f2d80becbf9924ac16f7f7c106f24a03bfa6a9566c2aa4/immuneML_dev-0.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-31 13:28:58",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "uio-bmi",
"github_project": "immuneML",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "immuneml-dev"
}