The increasing accessibility and reduced costs of sequencing has made genome analysis accessible to more and more researchers. Yet there remains a steep learning curve in the subsequent computational steps required to process raw reads into a database-deposited genome sequence. Here we describe “Genomer,” a tool to simplify the manual tasks of finishing and uploading a genome sequence to a database. Genomer can format a genome scaffold into the common files required for submission to GenBank. This software also simplifies updating a genome scaffold by allowing a human-readable YAML format file to be edited instead of large sequence files. Genomer is written as a command line tool and is an effort to make the manual process of genome scaffolding more robust and reproducible. Extensive documentation and video tutorials are available at http://next.gs.
Citation: Barton MD, Barton HA (2013) Genomer — A Swiss Army Knife for Genome Scaffolding. PLoS ONE 8(6): e66922. doi:10.1371/journal.pone.0066922
Editor: Jonathan H. Badger, J. Craig Venter Institute, United States of America
Received: March 1, 2013; Accepted: May 10, 2013; Published: June 24, 2013
Copyright: © 2013 Barton, Barton. This is an open-access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Funding: This work was supported by the National Institute for Health: IDeA Network of Biomedical Research Excellence (KY-INBRE) grant (NIH 2P20 RR016481-09) and the NIH R15 AREA Program grant (R15GM079775). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
Competing interests: The authors have declared that no competing interests exist.
The decreasing costs and increasing diversity of high-throughput sequencing methods is making genome analysis a common method to tackle unresolved questions in microbiology . Sequencing can produce – short nucleotide reads, which must be assembled into larger contigs that are scaffolded into larger megabase fragments or complete chromosomes. These larger DNA sequences are then annotated with genomic features such as protein-coding genes. However each of these required steps can produce imperfect results and remains the subject of active research –. Therefore manual curation of a genome sequence and corresponding annotations may still improve upon the results of automated methods.
Manually editing a genome sequence or annotation is non-trivial and requires effort on a researcher’s part. The large size of FASTA sequence files or general feature format (GFF) annotation files makes changing these in a text editor difficult. Tasks such as organising project files, adding additional sequences to an assembly, updating incorrect annotations or preparing files for database deposition all divert effort from the main goal of analysing a genome. As a result there is a steep learning curve for researchers embarking on genome sequencing for the first time, while still requiring effort from experienced researchers.
We anticipate these problems have resulted in individual groups independently producing in-house programming scripts to automate repetitive tasks. An example of such tasks include finding protein names that do not match a convention of three lower case characters followed by one upper case character (abcD). Such tasks are manually laborious but simple to automate computationally. Individual research groups producing their own scripts for such tasks however leads to a repetition of effort. In contrast open-source projects can lead to a pooling of community effort resulting in a higher standard of software and prevents reinvention of the same code .
During the process of sequencing several Pseudomonas fluorescens strains we developed a tool, called “Genomer,” to ease and simplify many of the common steps in our genome project. Several graphical user interface tools are available to work with genome projects, including G-InforBio, Genquire, Pile-LineGUI, Artemis and Consed –. Genomer instead provides a simple command line interface which allows scriptable automation and reproducible results. We made this software open-source under the MIT license and here we describe its application.
Genomer is written in the Ruby programming language (1.8.7 and 1.9.3) ,  and built upon the Rubygems and Bundler Ruby package management libraries. Rubygems is a software management system for Ruby which allows automatic downloading and installation of third-party software libraries from the rubygems.org website. Bundler is software for determining which specific versions of the available third libraries should be used.
Genomer uses these two libraries to create a plugin system where third-party software can be written and included. Plugin creators need only to prefix the name of their plugin with genomer-plugin- and upload this to rubygems.org or make the plugin available as a public git repository. A plugin is specified within a Genomer project in a file named ‘Gemfile.’ The bundle update command will then automatically download and install the required plugins plus any gem dependencies these gems rely on.
Genomer is implemented as a command line tool and tested on both Mac OS X and Linux systems. The latest version of Genomer can installed from the Rubygems package management system with the command gem install genomer. Genomer is based on our previously described “Scaffolder” software  and is invoked on the command line with the command genomer. Genomer provides extensive documentation via UNIX manual pages and on the Genomer website at http://next.gs.
Results and Discussion
Genomer was developed during our P. fluorescens genome projects to automate and simplify the manual steps required when finishing a microbial genome. Genomer provides the following functionality to facilitate this:
Simple Editing of a Draft Genome Sequence
Genomer is built on the existing Scaffolder  file format for assembling draft genome sequences. This is format requires only the order and IDs of each contig be specified. This thereby simplifies the process of re-organising and trimming contigs in a draft genome without having to edit large nucleotide sequences manually.
Mapping of Annotations onto the Assembled Sequence
Genomer maps the coordinates of contig annotations to their respective positions in the draft genome sequence. This allows the scaffold file to be continuously improved and updated even after the contigs have been annotated. For instance, additional PCR sequences can be used to close gaps in the assembly and the location of all annotations will be correspondingly updated.
Generation of Files for Submission to GenBank
Submitting a genome sequence to GenBank database requires generating specific files. These may include a FASTA file of the draft sequence, a table of annotations, a FASTA file containing the individual contig sequences, and ‘a golden path’ (AGP)  file describing the placement of contigs. Genomer automates the generation of all these files from the scaffold file and corresponding GFF3 file thereby removing the effort to produce these manually.
A Stable Interface and Streamlined Install Process
Genomer provides a plugin system built using the existing Ruby package management system: RubyGems and Bundler. This allows Genomer and its plugins to be automatically installed without requiring manual downloading and compilation by the user. This eliminates a common problem in bioinformatics where software may require technical expertise to first compile and install before being used. Installed plugins may also be locked to specific versions to prevent backwards incompatible software changes breaking an existing workflow.
Integration with the Command Line
Genomer is built as a command line tool around plain text files. This allows for integration with common Linux tools tools such as GNU Make or git allowing reproducible scripting of the genome finishing process.
Genomer is written as a command-line tool for use in shells such as bash or zsh. The advantage of command-line tools over GUI-based tools, is that the former are simpler to automate and allow the sharing of scripts with other researchers working on related projects. For instance, during our microbial genome project we automated Genomer using GNU Make build files, allowing the finishing steps to be repeated automatically using the make command. Genomer may therefore be of particular interest to bioinformaticians coordinating in groups on the same genome project and those who prefer automated approaches and scripting on the command line.
As Genomer uses plain text files to manage the draft genome sequence it is easy to store versions of the project using a revision control system such as git . This allows tracking changes to the project and reverting errors back to earlier versions. Example versioned build files from our genome projects can be found on GitHub for a simple plasmid  and a more complex genome  sequence.
We have released Genomer as open source software on GitHub  and have prepared documentation and video tutorials at http://next.gs. We have used this tool extensively to simplify our own genome projects and believe Genomer may also be useful to others in the field. We will illustrate the possible application of Genomer with the following use case.
Genomer use Case
- A Genomer project is organised around a set of already assembled and annotated contigs. In our microbial genome projects we assemble our reads into contigs using the A5 pipeline  and then subsequently annotate them using the Integrated Microbial Genomes resource . We then use these contigs as a starting point to build a draft genome sequence in Genomer.
- A genome scaffold is written in the scaffolder file format . This specifies the order and orientation of contigs and unresolved gap regions in the scaffold. Paired-read sequencing or comparison to reference genomes can be used as a source of contig orientation and order. As an example, in our own genome projects we determine contig order by aligning to a reference genome using nucmer . A detailed overview of the scaffolder file format can be found on the Genomer website.
- The genomer view command is used to generate files of the assembled scaffold, such as the FASTA file of the assembly or a GFF3 file of annotations locations on the assembled genome sequence. These files can then be used for subsequent analyses of the sequence.
- The genome scaffold can be continuously updated through closing any remaining gaps. During our microbe sequencing projects we closed gaps through a combination of Sanger PCR and in silico analysis. Genomer allows changes in the scaffold file to automatically propagate to the generated files when the genomer view command is rerun.
- The required files for submission to GenBank may be generated when researchers are satisfied with the status of their draft. These files include the assembled FASTA file, contig FASTA file, annotation table file, and AGP scaffold file. Additional options can be used to add the required prefix to gene annotation IDs and begin locus ID numbering at the origin of the sequence. Genomer does not produce the.asn file which is submitted to GenBank, but instead the files that are used as the input to tbl2asn or sequin tools provided by GenBank.
Genomer was written to satisfy our needs for building and finishing megabase sized draft genomes where assembly of the sequence takes place in memory. This makes Genomer well-suited for microbial genome projects where approximately 99% of microbial genomes sequenced to date are less than 10 MBp. The assembly of very large sequences may however limit performance when the size of the sequence exceeds available RAM space. We however anticipate that genome sizes of even 3 GBp will fit in the memory of a modern laptop or desktop computer.
One features of Genomer is the simplification of generating the annotation table file required for submission to GenBank. Genomer requires only a GFF3 file containing gene-type entries. Genomer is then able to generate the additional encoded protein features from these entries. One caveat to this however is that the assumption there is no intron/exon structure and therefore users wishing to submit annotations with alternative splicing cannot take advantage of this Genomer feature.
Genomer is an open-source tool to simplify and automate repetitive and time-consuming tasks required when finishing a microbial genome project. This software is available on GitHub  with documentation and video tutorials on the http://next.gs website. This tool has been useful in our own genome projects, and we believe it will also be useful to other researchers especially smaller research groups entering the field for the first time.
Conceived and designed the experiments: MDB HAB. Performed the experiments: MDB. Analyzed the data: MDB. Wrote the paper: MDB HAB.
- 1. Loman NJ, Constantinidou C, Chan JZM, Halachev M, Sergeant M, et al. (2012) High-throughput bacterial genome sequencing: an embarrassment of choice, a world of opportunity. Nature Reviews Microbiology 10: 599–606. doi: 10.1038/nrmicro2850
- 2. Earl DA, Bradnam K, St John J, Darling A, Lin D, et al. (2011) Assemblathon 1: A competitive assessment of de novo short read assembly methods. Genome Research 21: 2224–2241. doi: 10.1101/gr.126599.111
- 3. Quail M, Smith M, Coupland P, Otto T, Harris S, et al.. (2012) A tale of three next generation sequencing platforms: comparison of Ion Torrent, Pacific Biosciences and Illumina MiSeq sequencers. BMC Genomics 13: 341+.
- 4. Beckloff N, Starkenburg S, Freitas T, Chain P (2012) Bacterial genome annotation. Methods in Molecular Biology (Clifton, NJ) 881: 471–503. doi: 10.1007/978-1-61779-827-6_16
- 5. Ince DC, Hatton L, Graham-Cumming J (2012) The case for open computer programs. Nature 482: 485–488. doi: 10.1038/nature10836
- 6. Tanaka N, Abe T, Miyazaki S, Sugawara H (2006) G-InforBIO: integrated system for microbial genomics. BMC Bioinformatics 7: 368+.
- 7. Wilkinson MD, Block D, Crosby WL (2002) Genquire: genome annotation browser/editor. Bioinformatics (Oxford, England) 18: 1398–1399. doi: 10.1093/bioinformatics/18.10.1398
- 8. López-Fernández H, Glez-Peña D, Reboiro-Jato M, Gómez-López G, Pisano DG, et al. (2011) Pile-LineGUI: a desktop environment for handling genome position files in next-generation sequencing studies. Nucleic Acids Research 39: W562–W566. doi: 10.1093/nar/gkr439
- 9. Carver T, Harris SR, Berriman M, Parkhill J, McQuillan JA (2012) Artemis: an integrated platform for visualization and analysis of high-throughput sequence-based experimental data. Bioinformatics (Oxford, England) 28: 464–469. doi: 10.1093/bioinformatics/btr703
- 10. Gordon D, Abajian C, Green P (1998) Consed: a graphical tool for sequence finishing. Genome Research 8: 195–202. doi: 10.1101/gr.8.3.195
- 11. Matsumoto Y (Accessed 2013 May 18) The Ruby Programming Language Website. http://wwwruby-langorg/en/.
- 12. Goto N, Prins P, Nakao M, Bonnal R, Aerts J, et al. (2010) BioRuby: bioinformatics software for the Ruby programming language. Bioinformatics 26: 2617–2619. doi: 10.1093/bioinformatics/btq475
- 13. Barton MD, Barton HA (2012) Scaffolder - software for manual genome scaffolding. Source Code for Biology and Medicine 7: 4+.
- 14. (Accessed 2013 May 18) AGP Specification v2.0 Website. https://wwwncbinlmnihgov/projects/genome/assembly/agp/AGP_Specificationshtml.
- 15. Torvalds L. Git - distributed revision control and source code management. URL http://git-scm.com/.
- 16. (Accessed 2013 May 18) P. fluorescens r124 plasmid scaffold. https://githubcom/michaelbarton/chromosome-pfluorescens-r124-plasmid.
- 17. (Accessed 2013 May 18) P. fluorescens r124 genome scaffold. https://githubcom/michaelbarton/chromosome-pfluorescens-r124-genome.
- 18. (Accessed 2013 May 18) Genomer GitHub project. https://githubcom/michaelbarton/genomer.
- 19. Tritt A, Eisen JA, Facciotti MT, Darling AE (2012) An integrated pipeline for de novo assembly of microbial genomes. PloS One 7: e42304+.
- 20. Markowitz VM, Korzeniewski F, Palaniappan K, Szeto E, Werner G, et al. (2006) The integrated microbial genomes (IMG) system. Nucleic Acids Research 34: D344–D348. doi: 10.1093/nar/gkj024
- 21. Kurtz S, Phillippy A, Delcher AL, Smoot M, Shumway M, et al.. (2004) Versatile and open software for comparing large genomes. Genome Biology 5: R12+.