Skip to content

afin

Afin helps to complete plastome (chloroplast genome) assemblies with seed-based microassembly. It takes the contigs from a de Bruijn graph assembler, extends their ends with matching reads and fuses contigs that overlap. Its authors got the best results with contigs assembled with SPAdes.

License

Software is free to use and open source, but no license is specified.

Available

  • Roihu-CPU: 2016.08.17, via the bio-apps module.

Usage

Afin is part of the bio-apps collection on Roihu. Load the bio-apps module tree and then the afin module:

module load bio-apps/v202603
module load afin/2016.08.17

Give afin the contigs with -c and the reads with -r. Both options take one or more files, separated by commas, and the read files can be gzipped:

afin -c contigs.fasta -r reads_1.fastq.gz,reads_2.fastq.gz -o afin_out -t 8

Afin writes the extended and fused contigs to afin_out.fa and a log to afin_out.log. The -t option sets the number of threads for the extension step; the fusion step runs in one thread. Run afin -h to see all options.

Example batch script

#!/bin/bash
#SBATCH --job-name=afin
#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=32G

module load bio-apps/v202603
module load afin/2016.08.17

afin -c contigs.fasta -r reads_1.fastq.gz,reads_2.fastq.gz -o afin_out -t $SLURM_CPUS_PER_TASK

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.

Support

CSC Service Desk

More information

December 2, 2026