swiss

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Access   string
	Name     string
	Locus    string
	Desc     string
	Function string
	Length   int
	Organism string
	Phylum   string
	Sequence string
	Evidence string
}

func (*Entry) Info

func (e *Entry) Info()

func (*Entry) Test

func (e *Entry) Test(tk, ts, ek, es string) bool

func (*Entry) TestEvidence

func (e *Entry) TestEvidence(re string) bool

func (*Entry) TestTaxonomy

func (e *Entry) TestTaxonomy(re string) bool

type FileCloser

type FileCloser interface {
	Close() error
}

Shared interface in the module

type FileWriter

type FileWriter interface {
	Write(p []byte) (n int, err error)
	Flush() error
}

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(file string) *Reader

func (*Reader) Close

func (r *Reader) Close()

func (*Reader) GetData

func (r *Reader) GetData() *[]string

func (*Reader) LightParse

func (r *Reader) LightParse() *Entry

LightParse parse only essential elements for subset selection and do not extract the complete data from the entry.

func (*Reader) Next

func (r *Reader) Next() bool

func (*Reader) PanicOnError

func (r *Reader) PanicOnError()

func (*Reader) Parse

func (r *Reader) Parse() *Entry

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(file string) *Writer

func (*Writer) Close

func (w *Writer) Close()

func (*Writer) PanicOnError

func (w *Writer) PanicOnError()

func (*Writer) WriteEntryEnd

func (w *Writer) WriteEntryEnd()

func (*Writer) WriteStrings

func (w *Writer) WriteStrings(s *[]string)

Jump to

Keyboard shortcuts

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