fastq

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtPair

type ExtPair struct {
	ID     uint64
	WID    int
	Ok     bool
	R1, R2 Record
}

type FqReader

type FqReader struct {
	Fos    *os.File
	Pipe   io.ReadCloser
	Reader *bufio.Reader
	Done   bool
}

func Ropen

func Ropen(fpath string, cmd []string, bufSize int) (*FqReader, error)

func (*FqReader) Close

func (fq *FqReader) Close()

Close closes Ropen

func (*FqReader) Iter

func (fq *FqReader) Iter() (Record, error)

type FqWriter

type FqWriter struct {
	Fos    *os.File
	Pipe   io.WriteCloser
	Writer *bufio.Writer
}

func Wopen

func Wopen(fpath string, cmd []string, bufSize int) (*FqWriter, error)

func (*FqWriter) Close

func (fq *FqWriter) Close() error

Close closes Ropen

func (*FqWriter) WriteRecord

func (fq *FqWriter) WriteRecord(r Record) error

type Record

type Record struct {
	Name, Seq, Qual []byte
}

Record contains the data from a FASTQ record

Jump to

Keyboard shortcuts

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