OBITools4¶
OBITools4 is a set of command line programs for analyzing DNA metabarcoding data, for example pairing reads, demultiplexing samples, dereplicating sequences and assigning taxonomy. OBITools4 is written in Go and is much faster than the earlier versions. Most of its commands have the same names as in OBITools 2.
License¶
Free to use and open source under the CeCILL 2.1 license.
Available¶
- Roihu-CPU: 4.4.46, 4.5.2, via the
bio-appsmodule.
Usage¶
OBITools4 is part of the bio-apps collection on Roihu. Load the bio-apps module tree and then the OBITools4 module:
All the OBITools4 commands, such as obipairing, obimultiplex, obiuniq,
obiclean, obigrep and obitag, are then available. Run a command with --help
to see its options. The commands read FASTA or FASTQ files and write their results
to standard output, or to a file given with -o.
A typical analysis starts by pairing the forward and reverse reads, assigning the paired reads to samples and dereplicating them:
obipairing --min-identity=0.8 --min-overlap=10 -F reads_R1.fastq -R reads_R2.fastq > paired.fastq
obimultiplex -s ngsfilter.txt -u unidentified.fastq paired.fastq > assigned.fastq
obiuniq -m sample assigned.fastq > unique.fasta
The file ngsfilter.txt describes the samples, with the tags and primers of each PCR. The
reads that obimultiplex can't assign to a sample are written to
unidentified.fastq. You can continue with, for example, obiclean to remove PCR
and sequencing errors, and obitag to assign taxonomy against a reference database.
The commands use all the CPU cores they have available. Set the number of threads
with --max-cpu.
Example batch script¶
#!/bin/bash
#SBATCH --job-name=obitools4
#SBATCH --account=<project>
#SBATCH --output=output_%j.txt
#SBATCH --error=errors_%j.txt
#SBATCH --partition=small
#SBATCH --time=04:00:00
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=8
#SBATCH --mem=16G
module load bio-apps/v202603
module load obitools4/4.5.2
obipairing --max-cpu $SLURM_CPUS_PER_TASK --min-identity=0.8 --min-overlap=10 \
-F reads_R1.fastq -R reads_R2.fastq > paired.fastq
obimultiplex --max-cpu $SLURM_CPUS_PER_TASK -s ngsfilter.txt -u unidentified.fastq \
paired.fastq > assigned.fastq
obiuniq --max-cpu $SLURM_CPUS_PER_TASK -m sample assigned.fastq > unique.fasta
Replace <project> with your CSC project (for example project_2001234).
See creating a batch job script for Roihu for more information about running batch jobs.