Documentation
¶
Index ¶
- Constants
- type Adapter
- type Matrix
- func (m *Matrix) AddAdapter(seq []byte, trimMode int, order int)
- func (m *Matrix) CalcRevCompScore(seq1 []byte, qual1 []byte, seq2 []byte, qual2 []byte, rIdx int, qLen int) (bool, float64)
- func (m *Matrix) CombinePairSeqs(seq1 []byte, qual1 []byte, seq2 []byte, qual2 []byte, idx1 int, idx2 int) bool
- func (m *Matrix) FindAdapter(seq []byte, qual []byte) (bool, Solution)
- func (m *Matrix) FindAdapterWithPE(seq1 []byte, qual1 []byte, seq2 []byte, qual2 []byte) (bool, Solution, Solution)
- type Solution
- type SolutionSet
Constants ¶
View Source
const ( TRIM_DEFAULT = iota TRIM_HEAD TRIM_TAIL )
View Source
const ( CD_NONE = iota CD_A // Adenosine CD_C // Cytidine CD_G // Guanosine CD_T // Thymidine (or Uridine) CD_R // puRine, A or G CD_Y // pYrimidine, T or C CD_S // Strong, G or C CD_W // Weak, A or T CD_K // Keto, G or T CD_M // aMino, A or C CD_B // not A CD_D // not C CD_H // not G CD_V // not T CD_N // any base CD_CNT )
View Source
const MAX_PENALTY = 4.477121255
View Source
const MEAN_PENALTY = 2.477121255
View Source
const MIN_PENALTY = 0.477121255
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct { Seq []byte Length int MatchBits [CD_CNT]uint64 // contains filtered or unexported fields }
func NewAdapter ¶
type Matrix ¶
type Matrix struct { Epsilon float64 EpsilonIndel float64 PenaltyPerErr float64 Delta float64 Mu float64 Penalty [256]float64 Sensitive bool MinOverlap int Adapter1 *Adapter Adapter2 *Adapter }
func (*Matrix) CalcRevCompScore ¶
func (*Matrix) CombinePairSeqs ¶
type SolutionSet ¶
type SolutionSet struct {
Solutions []Solution
}
func (*SolutionSet) Get ¶
func (e *SolutionSet) Get(i int) Solution
func (*SolutionSet) Insert ¶
func (e *SolutionSet) Insert(elem Solution)
func (*SolutionSet) IsEmpty ¶
func (e *SolutionSet) IsEmpty() bool
func (*SolutionSet) Length ¶
func (e *SolutionSet) Length() int
Click to show internal directories.
Click to hide internal directories.