SeqOps

package
v0.0.0-...-20a8c95 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OHEncode

func OHEncode(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
	OH     []uint8 // one-hot encoded sequence
}

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
}

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