graphic

package
Version: v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package graphic provides simple BLAST report graphic rendering.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Summary

type Summary struct {
	// Legend, Aligns and Depths specify whether the legend, alignments
	// and depth plots are drawn. All are set to true by NewSummary.
	Legend bool
	Aligns bool
	Depths bool
	// contains filtered or unexported fields
}

A Summary can display a graphical summary of a blast output result.

func NewSummary

func NewSummary(o blast.Output) Summary

NewSummary returns a Summary of the provided blast output.

func (Summary) Render

func (s Summary) Render(cf func(w, h vg.Length) vg.Canvas) vg.Canvas

Render returns a vg.Canvas that has had the receiver's summary information rendered to it. The function cf must return a vg.Canvas that is w by h in size.

Source Files

Jump to

Keyboard shortcuts

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