Skip to content

Prokka

Prokka is a software tool to annotate bacterial, archaeal and viral genomes.

License

Free to use and open source under GNU GPLv3.

Available

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

Usage

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

module load bio-apps/v202603
module load prokka/1.15.6

After that you can launch Prokka with the command prokka.

Prokka jobs should be run either in an interactive session or as a batch job. More information about running batch jobs can be found from the batch job section of the Roihu user guide.

You should always define the number of cores that Prokka will use with option --cpus to match the number of cores reserved for the job. You can use the environment variable $SLURM_CPUS_PER_TASK to match the reserved number.

For example:

prokka --cpus $SLURM_CPUS_PER_TASK contigs.fasta

Larger analyses should be executed as a batch job utilizing several cores. A sample batch job script (batch_job_file.bash) is provided below:

#!/bin/bash
#SBATCH --job-name=prokka
#SBATCH --account=<project>
#SBATCH --output=output_%j.txt
#SBATCH --error=errors_%j.txt
#SBATCH --partition=small
#SBATCH --time=24:00:00
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=8
#SBATCH --mem=16G

module load bio-apps/v202603
module load prokka/1.15.6

prokka --cpus $SLURM_CPUS_PER_TASK --outdir results_case1 --prefix mygenome contigs_case1.fa

In the batch job example above one Prokka task (--ntasks=1) is executed. The job reserves 8 cores (--cpus-per-task=8) with a total of 16 GiB of memory (--mem=16G). The maximum duration of the job is 24 hours (--time=24:00:00). All the cores are assigned from one computing node (--nodes=1). Replace <project> with your CSC project (for example project_2001234). You can use the command csc-projects to see what CSC projects you have access to.

You can submit the batch job file to the batch job system with the command:

sbatch batch_job_file.bash

See the Roihu user guide for more information about running batch jobs.

Support

CSC Service Desk

More information

November 19, 2026