Documentation
¶
Overview ¶
Package bed is a library for parsing and representing BED files. See https://genome.ucsc.edu/FAQ/FAQformat.html#format1
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Strand forward. SF = utils.Intern("+") // Strand reverse. SR = utils.Intern("-") )
Symbols for optional strand field of a Region.
Functions ¶
Types ¶
type Bed ¶
type Bed struct {
// Bed tracks defined in the file.
Tracks []*Track
// Maps chromosome name onto bed regions.
RegionMap map[utils.Symbol][]*Region
}
Bed is a struct for representing the contents of a BED file. See https://genome.ucsc.edu/FAQ/FAQformat.html#format1
type Region ¶
A Region is a struct for representing intervals as defined in a BED file. See https://genome.ucsc.edu/FAQ/FAQformat.html#format1
func NewRegion ¶
NewRegion allocates and initializes a new Region. Optional fields are given in order. If a "later" field is entered, then the "earlier" field was entered as well. See https://genome.ucsc.edu/FAQ/FAQformat.html#format1
Click to show internal directories.
Click to hide internal directories.