seqio

package
v0.0.0-...-606ac98 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package seqio provides wrapper functions of biogo.

Index

Constants

View Source
const (
	// WidthCol is the length of the column used by WriteSeq.
	WidthCol = 80
)

Variables

This section is empty.

Functions

func ReadSeq

func ReadSeq(f io.Reader) (*linear.Seq, error)

ReadSeq reads a sequence from a FASTA file.

If the underlaying reader has encountered any error, ReadSeq will return the error.

func ScanSeq

func ScanSeq(f io.Reader, out chan<- *linear.Seq, wg *sync.WaitGroup)

ScanSeq scans sequences from a fasta file to a channel.

If the underlaying reader has encountered any error, ScanSeq will panic as the reader can no longer be read.

func WriteSeq

func WriteSeq(f io.Writer, in <-chan *linear.Seq, wg *sync.WaitGroup)

WriteSeq writes sequences from a channel to a fasta file.

If the underlaying writer has encountered any error, WriteSeq will panic as the writer can no longer be written.

Types

This section is empty.

Jump to

Keyboard shortcuts

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