GenbankWriter.php
Serializes a Plasmid into GenBank flat-file text Freely inspired by BioPHP's project biophp.org Created 30 September 2026 Last modified 9 October 2026
Table of Contents
Classes
- GenbankWriter
- Covers the subset of the GenBank flat-file format GenbankPlasmidMapper reads back : LOCUS, DEFINITION, ACCESSION, a FEATURES table (a synthetic "source 1..length" line plus one entry per PlasmidFeature) and an ORIGIN sequence block. It does not attempt REFERENCE, COMMENT, VERSION, a real division code or submission date - Plasmid carries none of those, and inventing plausible- looking values for them would misrepresent the record rather than describe it. The LOCUS line follows NCBI's fixed columns (see writeLocusLine()), except for a locus name longer than 16 characters, written in full rather than truncated.