Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Hash ¶
Hash is a function to create Seqhashes, a specific kind of identifier.
Example ¶
sequence := genbank.Read("../data/puc19.gbk") seqhash, _ := Hash(sequence.Sequence, "DNA", true, true) fmt.Println(seqhash)
Output: v1_DCD_4b0616d1b3fc632e42d78521deb38b44fba95cca9fde159e01cd567fa996ceb9
func RotateSequence ¶
RotateSequence rotates circular sequences to deterministic point.
Example ¶
sequence := genbank.Read("../data/puc19.gbk") sequenceLength := len(sequence.Sequence) testSequence := sequence.Sequence[sequenceLength/2:] + sequence.Sequence[0:sequenceLength/2] fmt.Println(RotateSequence(sequence.Sequence) == RotateSequence(testSequence))
Output: true
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.