Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Precision = 4 // biogo global precision value. FloatFormat byte = 'f' // biogo global float format. )
Output defaults.
View Source
var ( N = []byte("ACGTacgt") R = []byte("ACGUacgu") P = []byte("ABCDEFGHIJKLMNPQRSTVXYZabcdefghijklmnpqrstvxyz*") )
Provide default Validators.
View Source
var TraceDepth = 10
Trace depth
Functions ¶
Types ¶
type Error ¶
type Error interface { FileLine() (file string, line int) // Return the file name and line number of caller stored at creation of the Error. Trace() (stack []*runtime.Func) // Return a slice contining the stack trace stored at creation of the Error. Package() string // Return the package name of the stored caller. Function() string // Return the function name of the stored caller. Items() []interface{} // Return any items retained by caller. Tracef(depth int) string // A formatted stack trace of the error extending depth frames into the stack, 0 indicates no limit. error }
Base Error handling for bio packages.
type Moltype ¶
type Moltype int8
Moltype represents the molecule type of a source of sequence data.
func ParseMoltype ¶
ParseMoltype allows conversion from a string to a Moltype.
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator type checks that a sequence conforms to a specified alphabet.
var ValidN, ValidR, ValidP *Validator
func NewValidator ¶
Make a new Validator with valid defining the allowable values for the alphabet.
Click to show internal directories.
Click to hide internal directories.