Documentation ¶
Overview ¶
Package to read and write GFF format files
Index ¶
- Variables
- type Reader
- type Writer
- func (self *Writer) Close() (err error)
- func (self *Writer) Flush() error
- func (self *Writer) Stringify(f *feat.Feature) string
- func (self *Writer) Write(f *feat.Feature) (n int, err error)
- func (self *Writer) WriteComment(c string) (n int, err error)
- func (self *Writer) WriteMetaData(d interface{}) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultVersion = 2 DefaultToOneBased = true )
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct { Version int OneBased bool SourceVersion string Date time.Time TimeFormat string // Required for parsing date fields Type bio.Moltype // contains filtered or unexported fields }
GFF format reader type.
func NewReaderName ¶
Returns a new GFF reader using a filename.
type Writer ¶
type Writer struct { Version int OneBased bool FloatFormat byte Precision int Width int // contains filtered or unexported fields }
GFF format writer type.
func NewWriter ¶
func NewWriter(f io.WriteCloser, version, width int, header bool) (w *Writer)
Returns a new GFF format writer using f. When header is true, a version header will be written to the GFF.
func NewWriterName ¶
Returns a new GFF format writer using a filename, truncating any existing file. If appending is required use NewWriter and os.OpenFile. When header is true, a version header will be written to the GFF.
func (*Writer) WriteComment ¶
Write a comment line to a GFF file
func (*Writer) WriteMetaData ¶
Write meta data to a GFF file.
Click to show internal directories.
Click to hide internal directories.