KmerVec

package
v0.0.0-...-83bf922 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKmers

func GetKmers(k int, wg *sync.WaitGroup, in chan Sequence, lsp *SequenceCollection)

Types

type Sequence

type Sequence struct {
	Header string //contig id from fasta file
	Seq    string // contig sequence
	Kmers  string
}

func NewSequence

func NewSequence() *Sequence

Create a new empty sequence struct.

func ReadFasta

func ReadFasta(fname string) []Sequence

type SequenceCollection

type SequenceCollection struct {
	sync.RWMutex
	Items []Sequence
}

http://dnaeon.github.io/concurrent-maps-and-slices-in-go/

func (*SequenceCollection) Append

func (cs *SequenceCollection) Append(item Sequence)

func (*SequenceCollection) ToParquet

func (sc *SequenceCollection) ToParquet(fname string)

Jump to

Keyboard shortcuts

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