[](https://biobb-wf-autoencoder.readthedocs.io/en/latest/?badge=latest)
[](https://mybinder.org/v2/gh/bioexcel/biobb_wf_autoencoder/HEAD?labpath=biobb_wf_autoencoder%2Fnotebooks%2Fbiobb_wf_autoencoder.ipynb)
[](https://colab.research.google.com/github/bioexcel/biobb_wf_autoencoder/blob/main/biobb_wf_autoencoder/notebooks/biobb_wf_autoencoder.ipynb)
# AutoEncoders for Anomaly Detection tutorial using BioExcel Building Blocks (biobb)
This tutorial involves the use of a **multilayer AutoEncoder (AE)** for **feature extraction** and **pattern recognition** by analyzing **Molecular Dynamic Simulations**, step by step, using the **BioExcel Building Blocks library (biobb)**.
***
## Settings
### Biobb modules used
* [biobb_pytorch](https://github.com/bioexcel/biobb_pytorch): module collection to create and train ML & DL models using the popular PyTorch Python library.
### Auxiliary libraries used
* [jupyter](https://jupyter.org/): Free software, open standards, and web services for interactive computing across all programming languages.
* [nglview](http://nglviewer.org/#nglview): Jupyter/IPython widget to interactively view molecular structures and trajectories in notebooks.
* [numpy](https://numpy.org/): The fundamental package for scientific computing with Python.
* [mdtraj](https://www.mdtraj.org/): Read, write and analyze MD trajectories with only a few lines of Python code.
* [requests](https://requests.readthedocs.io/en/latest/): Requests is an elegant and simple HTTP library for Python, built for human beings.
* [matplotlib](https://matplotlib.org/): Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python.
> **IMPORTANT**: if your computer is a **mac ARM**, please be sure that the chosen architecture in conda is **ARM**. If not sure, type the following instruction in your terminal **before** starting the creation of the **environment**:
`conda config --env --set subdir osx-arm64`
This instruction ensures that the installed **torch** dependency will match your **architecture**.
### Conda Installation and Launch
```console
git clone https://github.com/bioexcel/biobb_wf_autoencoder.git
cd biobb_wf_autoencoder
conda env create -f conda_env/environment.yml
conda activate biobb_wf_autoencoder
jupyter-notebook biobb_wf_autoencoder/notebooks/biobb_wf_autoencoder.ipynb
```
***
## Tutorial
Click here to [view tutorial in Read the Docs](https://biobb-wf-autoencoder.readthedocs.io/en/latest/tutorial.html)
Click here to [execute tutorial in Binder](https://mybinder.org/v2/gh/bioexcel/biobb_wf_autoencoder/HEAD?labpath=biobb_wf_autoencoder%2Fnotebooks%2Fbiobb_wf_autoencoder.ipynb)
Click here to [open tutorial in Google Colab](https://colab.research.google.com/github/bioexcel/biobb_wf_autoencoder/blob/main/biobb_wf_autoencoder/notebooks/biobb_wf_autoencoder.ipynb)
***
## Version
2024.1 Release
## Copyright & Licensing
This software has been developed in the [MMB group](http://mmb.irbbarcelona.org) at the [BSC](http://www.bsc.es/) & [IRB](https://www.irbbarcelona.org/) for the [European BioExcel](http://bioexcel.eu/), funded by the European Commission (EU Horizon Europe [101093290](https://cordis.europa.eu/project/id/101093290), EU H2020 [823830](http://cordis.europa.eu/projects/823830), EU H2020 [675728](http://cordis.europa.eu/projects/675728)).
* (c) 2015-2024 [Barcelona Supercomputing Center](https://www.bsc.es/)
* (c) 2015-2024 [Institute for Research in Biomedicine](https://www.irbbarcelona.org/)
Licensed under the
[Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0), see the file LICENSE for details.
