cljam.io.gff

read-features

(read-features gff-reader)
Reads features of the GFF file, returning them as a lazy sequence. `reader`
must be an instance of `cljam.io.gff.GFFReader`.

reader

(reader f)
Returns an open `cljam.io.gff.GFFReader` instance of `f`. Should be used
inside `with-open` to ensure the reader is properly closed.

version

(version reader)
Returns a file format version of the given `reader`.

write-features

(write-features gff-writer features)
Writes `features` to the GFF file. `writer` must be an instance of
`cljam.io.gff.GFFWriter`. `features` must be a sequence of feature maps.

writer

(writer f)(writer f options)
Returns an open `cljam.io.gff.GFFWriter` instance of `f`. Should be used
inside `with-open` to ensure the writer is properly closed. Can take an
optional argument `options`, a map containing `:version`, `:major-revision`,
`:minor-revision` and `:encoding`. Currently supporting only `:version` 3.
To compress outputs, set `:encoding` to `:gzip` or `:bzip2`.