download

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2018 License: GPL-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

View Source
const (
	IMGFORMAT_SVG     = 0
	IMGFORMAT_PNG     = 1
	IMGFORMAT_EPS     = 2
	IMGFORMAT_PDF     = 3
	IMGFORMAT_UNKNOWN = 4
)

Variables

This section is empty.

Functions

func Format

func Format(format string) int

func StrFormat

func StrFormat(format int) string

Types

type ImageDownloader

type ImageDownloader interface {
	Download(id string, format int) ([]byte, error) // Downdload a tree image from a server
}

type ItolImageDownloader

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

func NewItolImageDownloader

func NewItolImageDownloader(config map[string]string) *ItolImageDownloader

func (*ItolImageDownloader) Download

func (d *ItolImageDownloader) Download(id string, format int) ([]byte, error)

Down a tree image from ITOL

type NcbiTreeDownloader added in v0.2.2

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

func NewNcbiTreeDownloader added in v0.2.2

func NewNcbiTreeDownloader() *NcbiTreeDownloader

NCBI taxonomy downloader

func (*NcbiTreeDownloader) Download added in v0.2.2

func (d *NcbiTreeDownloader) Download(id string) (*tree.Tree, error)

Download the NCBI taxonomy as a tree.Tree

func (*NcbiTreeDownloader) SetInternalNodesTaxId added in v0.2.3

func (d *NcbiTreeDownloader) SetInternalNodesTaxId(val bool)

If taxids only must be printed as internal nodes of the output tree Otherwise taxa names

func (*NcbiTreeDownloader) SetMapFileOutputPath added in v0.2.3

func (d *NcbiTreeDownloader) SetMapFileOutputPath(output string)

If called, the downloader will also write mapping between ncbi taxid and tax name in the given output file

func (*NcbiTreeDownloader) SetTipsTaxId added in v0.2.3

func (d *NcbiTreeDownloader) SetTipsTaxId(val bool)

If taxids only must be printed as tips of the output tree Otherwise taxa names

type TreeDownloader added in v0.2.2

type TreeDownloader interface {
	Download(id string) (*tree.Tree, error) // Download a tree from a server
}

Jump to

Keyboard shortcuts

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