No retraction, correction or concern found when last checked on Oct 17, 2026.
Pharokka: a fast scalable bacteriophage annotation tool
George Bouras, Roshan Nepal, Ghais Houtak and 3 more
Bioinformatics · 2022 · CC BY
doi:10.1093/bioinformatics/btac776
Abstract
Summary. In recent years, there has been an increasing interest in bacteriophages, which has led to growing numbers of bacteriophage genomic sequences becoming available. Consequently, there is a need for a rapid and consistent genomic annotation tool dedicated for bacteriophages. Existing tools either are not designed specifically for bacteriophages or are web- and email-based and require significant manual curation, which makes their integration into bioinformatic pipelines challenging. Pharokka was created to provide a tool that annotates bacteriophage genomes easily, rapidly and consistently with standards compliant outputs. Moreover, Pharokka requires only two lines of code to install and use and takes under 5 min to run for an average 50-kb bacteriophage genome.
Availability and implementation. Pharokka is implemented in Python and is available as a bioconda package using ‘conda install -c bioconda pharokka’. The source code is available on GitHub (https://github.com/gbouras13/pharokka). Pharokka has been tested on Linux-64 and MacOSX machines and on Windows using a Linux Virtual Machine.
Full text
From PubMed Central, U.S. National Library of Medicine, as current on Oct 17, 2026. Paragraph numbers are ours, so an answer can point at one.
1 Introduction
As the number of bacteriophage (phage) sequences increases, there is a need for bioinformatic tools that enable fast, consistent and scalable genomic annotation. Existing tools such as RAST, PHASTER and CPT Galaxy are web-server based which may be laborious in particular when multiple phage genomes require annotation. On the other hand, currently available customizable bioinformatics pipelines such as multiPhATE2 require significant understanding of bioinformatics to implement and have lengthy run times. Furthermore, command-line programs designed for viral discovery in metagenomic datasets such as Cenote-Taker 2, Hecatomb and MetaPhage require significant computational resources and storage for database installation.
As a result, one-line prokaryotic genome annotation tools such as Prokka are often used for phages, especially where tens or hundreds of phages need to be annotated simultaneously. However, such tools implement prokaryotic gene prediction tools that are based on models that are not designed for phage genomes. In addition, phage genes are often lacking in their default databases, resulting in incomplete or hypothetical functional annotation of phage genes.
Inspired by Prokka, here we created Pharokka as a one-line tool tailored to phages that provides annotations in a fast, scalable and consistent fashion. Pharokka identifies predicted coding sequences (CDS), transfer RNAs (tRNAs), transfer-messenger RNAs (tmRNAs) and clustered regularly interspaced short palindromic repeats (CRISPRs), providing functional annotation for CDS using the PHROGs database. With accessible bioconda installation, Pharokka is easily integrated into complex bioinformatic pipelines such as those created with Snakemake or Nextflow.
2 Materials and methods
The Pharokka workflow is outlined in Figure 1.
2.1 Input
Pharokka requires assembled DNA sequences in FASTA format (Fig. 1A). For phage isolates, this usually consists of one complete contig, but Pharokka can also annotate incomplete assemblies or metavirome samples with multiple contigs in the multiFASTA format. Furthermore, metagenomically assembled phage genomes and genomic contigs, derived using programs such as Virstorter2, Hecatomb and Cenote-taker 2, are also suitable to be annotated using Pharokka using meta mode.
2.2 Feature prediction
Pharokka uses PHANOTATE by default to predict CDS, as it is the only existing tool that is designed to predict genes in phage genomes (; Fig. 1B). PHANOTATE considers unique features of phage genomes such as small gene size, high coding density and alternative start codons. Moreover, PHANOTATE predicts significantly more genes that are on average smaller than other gene prediction tools. Small phage genes are more prevalent than predicted based on existing non-phage specific annotation tools and may encode for anti-CRISPR and antimicrobial resistance proteins. Alternatively, Pharokka users can specify Prodigal, a gene predictor designed for prokaryotic genes, be used for CDS prediction (; Fig. 1B). Prodigal may be useful if users wish to annotate large metavirome datasets quickly using meta mode (Table 4). In addition, Pharokka employs tRNAscan-SE 2 to predict tRNAs, Aragorn to predict tmRNAs and MinCED to predict CRISPRs (; Fig. 1D). When meta mode is specified, Pharokka runs PHANOTATE on each contig separately, leading to considerable speed improvement when multiple threads are specified.
2.3 Functional gene annotation
Functional assignment of predicted CDS is conducted using the PHROGs database (; Fig. 1C). The PHROGs database contains 38 880 PHROGs (protein orthologous groups) containing 868 340 proteins from 17 473 complete genomes of viruses infecting bacteria or archaea that are grouped together using remote homology detection. Each PHROG is assigned to one of nine functional categories. Each gene within each PHROG has a specific product description if known. All predicted CDS are translated into a protein sequence and assigned to the closest matching protein and accompanying PHROG in the PHROGs database using the protein searching tool mmseqs2. An e-value threshold of 10−5 is used by default. Users can also specify their own e-value if desired. This is particularly useful if the phage is novel with few or no similar sequences in the PHROGs database, as a lower threshold can be used to detect less similar matches. If no PHROG match is found, then the CDS is annotated as ‘No PHROG’ and ‘hypothetical protein’. All CDS that are annotated as ‘terminase large subunit’ are extracted into separate output files, as the terminase large subunit is commonly used for phylogenetic analysis.
2.4 Virulence factor and antimicrobial resistance gene detection
While virulence factors are commonly found on prophages, lytic phages rarely encode antibiotic resistance genes. Nonetheless, screening is required for all phages that are intended to be used for phage therapy. Pharokka adds antimicrobial resistance and virulence gene detection using the Comprehensive Antibiotic Resistance Database (CARD) and the Virulence Factor Database (VFDB) (; Fig. 1C). All protein CDS are assigned to the closest matching protein in each database with mmseqs2 if the match passes strict thresholds of 80% identity over 40% coverage recommended by.
3 Output
Pharokka’s output files are outlined in Table 1. The primary output of Pharokka is a.gff file that is suitable for use in downstream pan-genome programs such as Roary and panaroo (; Fig. 1E). Other files include a.tbl file, which is a flat-file table suitable to be uploaded to the NCBI's Bankit, a cds_functions.tsv file, which includes counts of CDS, tRNAs, CRISPRs and tmRNAs and CDS within each functional category for each contig in the input FASTA file, a length_gc_cds_density.tsv file, which outputs the length, GC percentage and CDS coding density for each contig, a cds_final_merged_output.tsv, which gives the combined parsed output from mmseqs2 searches against the PHROGs, VFDB and CARD databases, and terL.faa and terL.ffn output files that contain the amino acid and nucleotide sequences of any predicted terminase large subunit genes. When run on metavirome input, Pharokka’s contig-level summary output allows users to identify specific contigs within the metavirome that possess unusual features such as virulence factors, antimicrobial resistance genes or potential stop codon reassignment as indicated by low CDS coding density.
4 Results
To test the performance of Pharokka, we compared the run-time and annotations of Enterobacteria phage lambda (Genbank accession J02459), Staphylococcus phage SAOMS1 (Genbank accession MW460250) and 673 crAss-like metagenome-assembled phage genomes from the human gut with default Pharokka v1.1.0 using PHANOTATE as a gene predictor, Pharokka v1.1.0 specifying Prodigal as gene predictor and Prokka v1.14.6 using a version of the PHROGs HMM database that has been reformatted for use with Prokka (https://millardlab.org/2021/11/21/phage-annotation-with-phrogs/). For the 673 crAss-like phage genomes, Pharokka’s meta mode was employed. Benchmarking was conducted on an Intel® Xeon® CPU E5-4610 v2 @ 2.30 GHz specifying 16 threads for Pharokka and 16 cpus for Prokka.
Tables 2 and 3 show that for phages Lambda and SAOMS1, Pharokka is slower than Prokka but still fast, finishing within 5 min regardless of gene predictor used, with PHANOTATE predicting more CDS with higher coding density than Prodigal. Table 4 shows that for the crAss-like phage genomes, Pharokka is considerably faster than using Prokka regardless of gene predictor, due to Pharokka using mmseqs2 for database searching rather than HMMER3 employed by Prokka. As the size of the input increases, the extra-time cost incurred by Pharokka is due to the gene prediction and tRNA calling, rather than the database searching. For extremely large metavirome datasets, Pharokka in Prodigal meta mode is therefore recommended.
In addition, for the crAss-like phage genomes, the low coding density output of some contigs identified by Pharokka indicates that stop codon reassignment may be occurring in these contigs.
References 36
- 1.
- 2.
- 3.
Arndt D. et al (2016 ) PHASTER: a better, faster version of the PHAST phage search tool. Nucleic Acids Res., 44, W16–W21.
Not in our library10.1093/nar/gkw387
- 4.
- 5.
Beamud B. et al (2022 ) Genetic determinants of host tropism in Klebsiella phages..
Not in our library10.1101/2022.06.01.494021
- 6.
- 7.
- 8.
Cook R. et al (2021 ) INfrastructure for a PHAge REference database: identification of large-scale biases in the current collection of cultured phage genomes. Phage (New Rochelle), 2, 214–223.
Not in our library10.1089/phage.2021.0007
- 9.
Davis J.J. et al (2020 ) The PATRIC bioinformatics resource center: expanding data and analysis capabilities. Nucleic Acids Res., 48, D606–D612.
Not in our library10.1093/nar/gkz943
- 10.
Di Tommaso P. et al (2017 ) Nextflow enables reproducible computational workflows. Nat. Biotechnol., 35, 316–319.
Not in our library10.1038/nbt.3820
- 11.
- 12.
Enault F. et al (2017 ) Phages rarely encode antibiotic resistance genes: a cautionary tale for virome analyses. ISME J., 11, 237–247.
Not in our library10.1038/ismej.2016.90
- 13.
Finn R.D. et al (2011 ) HMMER web server: interactive sequence similarity searching. Nucleic Acids Res., 39, W29–W37.
Not in our library10.1093/nar/gkr367
- 14.
Fortier L.-C., Sekulovic O. (2013 ) Importance of prophages to evolution and virulence of bacterial pathogens. Virulence, 4, 354–365.
Not in our library10.4161/viru.24498
- 15.
Fremin B.J. et al; Global Phage Small Open Reading Frame (GP-SmORF) Consortium (2022 ) Thousands of small, novel genes predicted in global phage genomes. Cell Rep., 39, 110984.
Not in our library10.1016/j.celrep.2022.110984
- 16.
- 17.
- 18.
Laslett D., Canback B. (2004 ) ARAGORN, a program to detect tRNA genes and tmRNA genes in nucleotide sequences. Nucleic Acids Res., 32, 11–16.
Not in our library10.1093/nar/gkh152
- 19.
Liu B. et al (2019 ) VFDB 2019: a comparative pathogenomic platform with an interactive web interface. Nucleic Acids Res., 47, D687–D692.
Not in our library10.1093/nar/gky1080
- 20.
- 21.
Millard A. (2021 ) PHAGE ANNOTATION WITH PHROGS. Millardlab.
Not in our library
- 22.
- 23.
Mölder F. et al (2021 ) Sustainable data analysis with Snakemake. F1000Res., 10, 33.
Not in our library10.12688/f1000research.29032.1
- 24.
Nordstrom H.R. et al (2022 ) Genomic characterization of lytic bacteriophages targeting genetically diverse Pseudomonas aeruginosa clinical isolates. iScience, 25, 104372.
Not in our library10.1016/j.isci.2022.104372
- 25.
Pandolfo M. et al (2022 ) MetaPhage: an automated pipeline for analyzing, annotating, and classifying bacteriophages in metagenomics sequencing data. mSystems, 7, e0074122.
Not in our library10.1128/msystems.00741-22
- 26.
- 27.
Peters S.L. et al (2022 ) Experimental validation that human microbiome phages use alternative genetic coding. Nat. Commun., 13, 5710.
Not in our library10.1038/s41467-022-32979-6
- 28.
- 29.
Roach M. et al (2022 ) Hecatomb: an end-to-end research platform for viral metagenomics..
Not in our library10.1101/2022.05.15.492003
- 30.
Seemann T. (2014 ) Prokka: rapid prokaryotic genome annotation. Bioinformatics, 30, 2068–2069.
Not in our library10.1093/bioinformatics/btu153
- 31.
Shen A., Millard A. (2021 ) Phage genome annotation: where to begin and end. Phage (New Rochelle), 2, 183–193.
Not in our library10.1089/phage.2021.0015
- 32.
Steinegger M., Söding J. (2017 ) MMseqs2 enables sensitive protein sequence searching for the analysis of massive data sets. Nat. Biotechnol., 35, 1026–1028.
Not in our library10.1038/nbt.3988
- 33.
Terzian P. et al (2021 ) PHROG: families of prokaryotic virus proteins clustered using remote homology. NAR Genom. Bioinform., 3, lqab067.
Not in our library10.1093/nargab/lqab067
- 34.
Tisza M.J. et al (2021 ) Cenote-Taker 2 democratizes virus discovery and sequence annotation. Virus Evol., 7, veaa100.
Not in our library10.1093/ve/veaa100
- 35.
- 36.
Reads
Read by people on this page
None yet.
Checked or read by AI through naulon
None yet.
A person counts once a day per paper. We keep no cookie and no address: a reader is a hash that changes every day. Any month under five reads shows no number.
Are you an author?
Is this your paper?
Claim it to add your note and be paid when agents cite it. Free.