blast

package module
v1.0.3-0...-7067d9e Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AZqseqid = func(c1, c2 *row) bool {
	return c1.Qseqid <= c2.Qseqid
}

Closures that order the Change structure.

View Source
var AZsseqid = func(c1, c2 *row) bool {
	return c1.Sseqid <= c2.Sseqid
}
View Source
var IncEvalue = func(c1, c2 *row) bool {
	return c1.Evalue < c2.Evalue
}
View Source
var IncSstart = func(c1, c2 *row) bool {
	return c1.Sstart < c2.Sstart
}
View Source
var Length = func(c1, c2 *row) bool {
	return c1.Length > c2.Length
}
View Source
var Pident = func(c1, c2 *row) bool {
	return c1.Pident > c2.Pident
}
View Source
var Qcovhsp = func(c1, c2 *row) bool {
	return c1.Qcovhsp > c2.Qcovhsp
}

Functions

func ExtractBest

func ExtractBest(bs Blast, p float64, fKing, fNames string) (Blast, Duplicated, error)

func OrderedBy

func OrderedBy(less ...lessFunc) *multiSorter

OrderedBy returns a Sorter that sorts using the less functions, in order. Call its Sort method to sort the data.

Types

type Blast

type Blast []row

func LoadBlast

func LoadBlast(file string) (Blast, error)

func (Blast) ExtractGenomes

func (bs Blast) ExtractGenomes() map[string]map[string]bool

func (Blast) GetPangenome

func (b Blast) GetPangenome(t pangenome.Taxids, core, acc float64, k, s string) pangenome.Pangenome

func (Blast) Pretty

func (b Blast) Pretty(nb int)

func (Blast) Write

func (b Blast) Write(d, o string) error

type Duplicated

type Duplicated [][]*row

func (Duplicated) PrintDup

func (d Duplicated) PrintDup()

func (Duplicated) Write

func (d Duplicated) Write(dir, o string) error

Jump to

Keyboard shortcuts

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