Documentation
¶
Index ¶
- func Build(sequence poly.Sequence) []byte
- func BuildFeatureString(feature poly.Feature) string
- func BuildLocationString(location poly.Location) string
- func Parse(file []byte) poly.Sequence
- func ParseFlat(file []byte) []poly.Sequence
- func ParseMulti(file []byte) []poly.Sequence
- func Read(path string) poly.Sequence
- func ReadFlat(path string) []poly.Sequence
- func ReadFlatGz(path string) []poly.Sequence
- func ReadMulti(path string) []poly.Sequence
- func Write(sequence poly.Sequence, path string)
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
Build builds a GBK string to be written out to db or file.
Example ¶
Output: 22-OCT-2019
func BuildFeatureString ¶
BuildFeatureString is a helper function to build gbk feature strings for Build()
func BuildLocationString ¶
BuildLocationString is a recursive function that takes a location object and creates a gbk location string for Build()
func Parse ¶
Parse takes in a string representing a gbk/gb/genbank file and parses it into an Sequence object.
Example ¶
Output: 22-OCT-2019
func ParseFlat ¶
ParseFlat specifically takes the output of a Genbank Flat file that from the genbank ftp dumps. These files have 10 line headers, which are entirely removed
Example ¶
Output: AB000100, AB000106
func ParseMulti ¶
ParseMulti parses multiple Genbank files in a byte array to multiple sequences
Example ¶
Output: AB000100, AB000106
func Read ¶
Read reads a Gbk from path and parses into an Annotated sequence struct.
Example ¶
Output: 22-OCT-2019
func ReadFlat ¶
ReadFlat reads flat genbank files, like the ones provided by the NCBI FTP server (after decompression)
Example ¶
Output: AB000100, AB000106
func ReadFlatGz ¶
ReadFlatGz reads flat gzip'd genbank files, like the ones provided by the NCBI FTP server
Example ¶
Output: AB000100, AB000106
Types ¶
This section is empty.