trim

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2025 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewMatrixAdapter

func NewMatrixAdapter(adaptors [][]byte, trimSide int, epsilon float64, epsilonIndel float64, minOverlap int, baseQual int) []*bktrim.Matrix

func NewMatrixAdapterPaired

func NewMatrixAdapterPaired(adaptors [][]byte, adaptorsPaired [][]byte, epsilon float64, epsilonIndel float64, minOverlap int, baseQual int) []*bktrim.Matrix

Types

type TrimType

type TrimType int
const (
	NoTrimType TrimType = iota
	TrimExactType
	TrimAlignType
	TrimTooShortType
)

func TrimAlign

func TrimAlign(r *fastq.Record, adaptors [][]byte, minAdaptor int, minScore float32, trimSide int, applyTrimSeq bool, verboseLevel int) (TrimType, int, float32, []byte)

Trim by aligning

func TrimBKTrim

func TrimBKTrim(r *fastq.Record, bkMatrices []*bktrim.Matrix, minAdaptor int, trimSide int, applyTrimSeq bool, verboseLevel int) (TrimType, int, float32, []byte)

Trim by aligning

func TrimBKTrimPaired

func TrimBKTrimPaired(p *fastq.ExtPair, bkMatrices []*bktrim.Matrix, applyTrimSeq bool, verboseLevel int) (TrimType, int, float32, []byte)

Trim by aligning

func TrimMatch

func TrimMatch(r *fastq.Record, adaptors [][]byte, position int, minAdaptor int, minScore float32, trimSide int, applyTrimSeq bool, verboseLevel int) (TrimType, int, float32, []byte)

Trim by matching

func TrimQuality added in v0.2.0

func TrimQuality(r *fastq.Record, window int, unqualifiedPropMax float32, minQuality int, asciiMin int, trimSide int, applyTrimSeq bool, verboseLevel int) (TrimType, int, float32, []byte)

Trim by quality

func TrimSearch

func TrimSearch(r *fastq.Record, adaptors [][]byte, minAdaptor int, minScore float32, trimSide int, applyTrimSeq bool, verboseLevel int) (TrimType, int, float32, []byte)

Trim by search

func (TrimType) String

func (t TrimType) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL