2023-02-02 12:41:30 +01:00
# obitools V4
2022-01-13 23:15:22 +01:00
2023-02-02 12:41:30 +01:00
*OBITools V4* is the new version of * OBITools * . They are closer to * OBITools2 * than to * OBITools3 * .
They are implemented in * GO * and are tens of times faster than OBITools2.
The git for * OBITools4 * is available at :
2024-07-29 14:35:21 +02:00
> https://github.com/metabarcoding/obitools4
2023-02-02 12:41:30 +01:00
## Installing *OBITools V4*
An installation script that compiles the new * OBITools * on your Unix-like system is available online.
The easiest way to run it is to copy and paste the following command into your terminal
```{bash}
2024-07-29 14:35:21 +02:00
curl -L https://raw.githubusercontent.com/metabarcoding/obitools4/master/install_obitools.sh | bash
2023-02-02 12:41:30 +01:00
```
2026-02-06 09:52:43 +01:00
By default, the script installs the latest version of * OBITools * commands and other associated files into the `/usr/local` directory.
2023-02-02 12:41:30 +01:00
2026-02-06 09:52:43 +01:00
### Installation Options
2023-02-02 12:41:30 +01:00
2026-02-06 09:52:43 +01:00
The installation script offers several options:
> -l, --list List all available versions and exit.
>
> -v, --version Install a specific version (e.g., `-v 4.4.3`).
> By default, the latest version is installed.
>
2023-02-02 12:41:30 +01:00
> -i, --install-dir Directory where obitools are installed
> (as example use `/usr/local` not `/usr/local/bin`).
>
> -p, --obitools-prefix Prefix added to the obitools command names if you
> want to have several versions of obitools at the
2026-03-13 11:59:00 +01:00
> same time on your system (as example `-p g` will produce
2023-02-02 12:41:30 +01:00
> `gobigrep` command instead of `obigrep`).
2026-03-13 11:59:00 +01:00
>
> -j, --jobs Number of parallel jobs used for compilation
> (default: 1). Increase this value to speed up
> compilation on multi-core systems (e.g., `-j 4`).
2023-02-02 12:41:30 +01:00
2026-02-06 09:52:43 +01:00
### Examples
List all available versions:
```{bash}
curl -L https://raw.githubusercontent.com/metabarcoding/obitools4/master/install_obitools.sh | bash -s -- --list
```
2023-02-02 12:41:30 +01:00
2026-02-06 09:52:43 +01:00
Install a specific version:
```{bash}
curl -L https://raw.githubusercontent.com/metabarcoding/obitools4/master/install_obitools.sh | bash -s -- --version 4.4.3
```
Install in a custom directory with command prefix:
2023-02-02 12:41:30 +01:00
```{bash}
2024-07-29 14:35:21 +02:00
curl -L https://raw.githubusercontent.com/metabarcoding/obitools4/master/install_obitools.sh | \
2023-02-02 12:41:30 +01:00
bash -s -- --install-dir test_install --obitools-prefix k
```
2026-02-06 09:52:43 +01:00
In this last example, the binaries will be installed in the `test_install` directory and all command names will be prefixed with the letter `k` . Thus, `obigrep` will be named `kobigrep` .
### Note on Version Compatibility
The names of the commands in the new * OBITools4 * are mostly identical to those in * OBITools2 * .
Therefore, installing the new * OBITools * may hide or delete the old ones. If you want both versions to be
available on your system, use the `--install-dir` and `--obitools-prefix` options as shown above.
2023-03-07 05:48:50 +01:00
## Continuing the analysis...
2023-03-07 05:50:19 +01:00
Before with _ OBITools2 _ to continue the analysis, `obitab` was used as last command to produce a tab delimited file that was loadable in R or in any spreadsheet. The generated file was huge and required to load the full dataset in memory to be produced. Hereby _ OBITools4 _ proposes to substitute the `obitab` usage by the [ROBIFastRead ](https://git.metabarcoding.org/obitools/obitools4/robireadfasta ) R module.
2023-03-07 05:48:50 +01:00