fastq

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 7 Imported by: 3

Documentation

Overview

Package fastq decodes and encodes fastq files.

This package uses the format described in: https://en.wikipedia.org/wiki/FASTQ_format

This package does not validate sequence and quality characters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File added in v1.0.0

func File(file string) iter.Seq2[*Fastq, error]

File returns an iterator over fastq entries in a file.

func Reader

func Reader(r io.Reader) iter.Seq2[*Fastq, error]

Reader returns an iterator over fastq entries in a reader.

Types

type Fastq

type Fastq struct {
	Name     []byte // Entry name (without the '@').
	Sequence []byte // Sequence.
	Quals    []byte // Qualities as ASCII characters.
}

Fastq is a single sequence in a fastq file.

func (*Fastq) MarshalText added in v0.1.17

func (f *Fastq) MarshalText() ([]byte, error)

MarshalText returns the textual representation of f in fastq format. Includes a trailing new line.

func (*Fastq) Write added in v1.0.0

func (f *Fastq) Write(w io.Writer) error

Write writes this entry in textual Fastq format to the given writer. Includes a trailing new line.

Jump to

Keyboard shortcuts

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