Documentation ¶
Overview ¶
Package feat provides the base for storage and manipulation of biological interval information.
Index ¶
- func BaseOrientationOf(f Feature) (ori Orientation, ref Feature)
- func OneToZero(pos int) int
- func ZeroToOne(pos int) int
- type Adder
- type Collection
- type Conformation
- type Conformationer
- type Feature
- type LocationSetter
- type Moltype
- type Mutable
- type Offsetter
- type OrientSetter
- type Orientation
- type Orienter
- type Pair
- type Range
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseOrientationOf ¶
func BaseOrientationOf(f Feature) (ori Orientation, ref Feature)
BaseOrientationOf returns the orientation of the given feature relative to the deepest orientable location and the reference feature, which may be the feature itself if it is not an Orienter or has a nil Location. The returned orientation will always be Forward or Reverse. BaseOrientationOf will panic if the feature chain is deeper than 1000 links.
Types ¶
type Collection ¶
type Conformation ¶
type Conformation int8
const ( UndefinedConformation Conformation = iota - 1 Linear Circular )
func (Conformation) String ¶
func (c Conformation) String() string
type Conformationer ¶
type Conformationer interface { Conformation() Conformation SetConformation(Conformation) error }
type LocationSetter ¶
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 OrientSetter ¶
type OrientSetter interface {
SetOrientation(Orientation) error
}
type Orientation ¶
type Orientation int8
const ( Reverse Orientation = iota - 1 NotOriented Forward )
func OrientationWithin ¶
func OrientationWithin(f, ref Feature) Orientation
OrientationWithin returns the orientation of the given feature relative to the given reference. If f is not located within the reference OrientationWithin will return NotOriented. OrientationWithin will panic if the feature chain is deeper than 1000 links.
func (Orientation) String ¶
func (o Orientation) String() string
type Orienter ¶
type Orienter interface {
Orientation() Orientation
}
Orienter wraps the Orientation method.
Orientation returns the orientation of the feature relative to its location.