Documentation ¶
Index ¶
- Constants
- func BasesToUint64LeftAln(seq []dna.Base, start int, end int) uint64
- func BasesToUint64RightAln(seq []dna.Base, start int, end int) uint64
- func CountLeftMatches(one *TwoBit, startOne int, two *TwoBit, startTwo int) int
- func CountRightMatches(one *TwoBit, startOne int, two *TwoBit, startTwo int) int
- func GetBase(frag *TwoBit, pos uint) dna.Base
- type TwoBit
Constants ¶
const ( A uint8 = 0 C uint8 = 1 G uint8 = 2 T uint8 = 3 )
Variables ¶
This section is empty.
Functions ¶
func BasesToUint64LeftAln ¶
BasesToUint64LeftAln converts a user-specified range of an input slice of dna.Base structs into a tw-bit encoded uint64 sequence. Sequences less than 32 bases long are aligned to the left of the uint64 memory space.
func BasesToUint64RightAln ¶
BasesToUint64RightAln converts a user-specified range of an input slice of dna.Base structs into a tw-bit encoded uint64 sequence. Sequences less than 32 bases long are aligned to the right of the uint64 memory space.
func CountLeftMatches ¶
func CountRightMatches ¶
Types ¶
type TwoBit ¶
TwoBit is a struct that encodes DNA sequences in two-bit compressed format. Seq contains the sequence information itself. Len specifies the length of the sequence.
func NewTwoBit ¶
NewTwoBit parses a TwoBit sequence struct from an input slice of dna.Base structs. Remainder bases will be left-aligned.
func NewTwoBitRainbow ¶
func TwoBitRainbowDeReference ¶
TwoBitRainbowDeReference is the same as NewTwoBitRainbow except it will be turn a non-pointer plice of dnaTwoBit.