GffFeatureWriter.php
Serializes PlasmidFeature instances into GFF3 text Freely inspired by BioPHP's project biophp.org Created 30 September 2026 Last modified 6 October 2026
Table of Contents
Classes
- GffFeatureWriter
- The inverse of GffFeatureReader. Coordinates need no conversion : GFF3, like PlasmidFeature, is 1-based inclusive. An origin-crossing feature (start > end) is written the GFF3 way, with end = its real end + the molecule length, which therefore has to be given ; a landmark line spanning 1..length and flagged Is_circular=true is then written too (or, when a feature read in as that "region" landmark is among the features, that line is flagged instead), so GffFeatureReader can fold the feature back. Without the length, such a feature is rejected by throwing.