# Installation
## Installation of Binette
### With Bioconda
Binette can be esailly installed with conda
```bash
conda create -c bioconda -c defaults -c conda-forge -n binette binette
conda activate binette
```
Binette should be able to run :
```
binette -h
```
```{tip}
For quicker installation and potential resolution of conflicting dependencies, consider using [Mamba](https://github.com/mamba-org/mamba), an efficient alternative to conda.
```
### From the source code within a conda environnement
A straightforward method to install Binette from the source code is by utilizing a conda environment that includes all the necessary dependencies.
**1. Clone the Binette Repository**
```bash
git clone https://github.com/genotoul-bioinfo/Binette
cd Binette
```
**2. Installing Dependencies with a Conda Environment File**
Install Binette dependencies listed in the [binette.yaml](https://github.com/genotoul-bioinfo/Binette/blob/main/binette.yaml) file located at the root of the repository, using conda:
```bash
conda env create -n binette -f binette.yaml
conda activate binette
```
**3. Installing Binette**
Finally, install Binette using **pip**:
```bash
pip install .
```
Binette should be able to run :
```bash
binette -h
```
### With PyPI
Binette is available on [PyPI](https://pypi.org/project/Binette/) and can be installed using pip as follows:
```bash
pip install binette
```
In addition to Python dependencies, Binette requires a few external tools:
* **[DIAMOND](https://github.com/bbuchfink/diamond)** must be installed and available in your system’s `PATH`.
* **[CheckM2](https://github.com/chklovski/CheckM2)** (version `1.1.0`) is also required but not distributed on PyPI. You can install it directly from GitHub:
```bash
pip install git+https://github.com/chklovski/CheckM2.git@1.1.0
```
## Downloading the CheckM2 database
Before using Binette, it is necessary to download the CheckM2 database:
```bash
checkm2 database --download --path
```
Make sure to replace `` with the desired path where you want to store the CheckM2 database.