MCPcopy Create free account
hub / github.com/Koeng101/dnadesign / ExampleRotateSequence

Function ExampleRotateSequence

lib/seqhash/example_test.go:23–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23func ExampleRotateSequence() {
24 file, _ := os.Open("../data/puc19.gbk")
25 defer file.Close()
26 parser := bio.NewGenbankParser(file)
27 sequence, _ := parser.Next()
28
29 sequenceLength := len(sequence.Sequence)
30 testSequence := sequence.Sequence[sequenceLength/2:] + sequence.Sequence[0:sequenceLength/2]
31
32 fmt.Println(seqhash.RotateSequence(sequence.Sequence) == seqhash.RotateSequence(testSequence))
33 // output: true
34}
35
36func ExampleHash2() {
37 sequence := "ATGC"

Callers

nothing calls this directly

Calls 1

NextMethod · 0.65

Tested by

no test coverage detected