Documentation ¶
Index ¶
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func IterEntry(d DataManager) chan Entry
- func MustAsset(name string) []byte
- func ParseSimpleWb(xlFile *SimpleWorkbook) ([]dataIndex, error)
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- func SaveIndex(uri string, root string) error
- type Band
- type Bed3
- type Bed4
- type BigBedManager
- func (m *BigBedManager) Add(key string, reader io.ReadSeeker, uri string) error
- func (bb *BigBedManager) AddURI(uri string, key string) error
- func (m *BigBedManager) Del(key string) error
- func (m *BigBedManager) Get(key string) (string, bool)
- func (m *BigBedManager) GetAttr(key string) (map[string]interface{}, bool)
- func (m *BigBedManager) List() []string
- func (m *BigBedManager) Move(key1 string, key2 string) bool
- func (m *BigBedManager) ServeTo(router *mux.Router)
- func (m *BigBedManager) SetAttr(key string, value map[string]interface{}) error
- type BigWigManager
- func (m *BigWigManager) Add(key string, reader io.ReadSeeker, uri string) error
- func (m *BigWigManager) AddURI(uri string, key string) error
- func (m *BigWigManager) Del(key string) error
- func (m *BigWigManager) Get(key string) (string, bool)
- func (m *BigWigManager) GetAttr(key string) (map[string]interface{}, bool)
- func (m *BigWigManager) List() []string
- func (m *BigWigManager) Move(key1 string, key2 string) bool
- func (m *BigWigManager) ServeTo(router *mux.Router)
- func (m *BigWigManager) SetAttr(key string, value map[string]interface{}) error
- type CytoBand
- type CytoBandManager
- func (m *CytoBandManager) Add(genome string) error
- func (m *CytoBandManager) AddURI(uri string, key string) error
- func (m *CytoBandManager) Del(genome string) error
- func (m *CytoBandManager) Get(genome string) (string, bool)
- func (m *CytoBandManager) List() []string
- func (m *CytoBandManager) Move(key1 string, key2 string) bool
- func (m *CytoBandManager) ServeTo(router *mux.Router)
- type DataLoader
- type DataManager
- type DataRouter
- type DataServer
- type Entry
- type FileManager
- func (m *FileManager) AddURI(uri string, key string) error
- func (m *FileManager) Del(key string) error
- func (m *FileManager) Get(key string) (string, bool)
- func (m *FileManager) List() []string
- func (m *FileManager) Move(key1 string, key2 string) bool
- func (m *FileManager) ServeTo(router *mux.Router)
- type HicManager
- func (m *HicManager) Add(key string, reader io.ReadSeeker, uri string) error
- func (m *HicManager) AddURI(uri string, key string) error
- func (m *HicManager) Del(key string) error
- func (m *HicManager) Get(key string) (string, bool)
- func (m *HicManager) GetAttr(key string) (map[string]interface{}, bool)
- func (m *HicManager) List() []string
- func (m *HicManager) Move(key1 string, key2 string) bool
- func (m *HicManager) ServeTo(router *mux.Router)
- func (m *HicManager) SetAttr(key string, value map[string]interface{}) error
- type IndexEntry
- type Loader
- func (m *Loader) AddDataMiddleware(uri string, h http.Handler) http.Handler
- func (e *Loader) AddLoader(format string, f func(string, interface{}) (DataRouter, error)) error
- func (e *Loader) Factory(dbname string, data interface{}, format string) func(string, interface{}) (DataRouter, error)
- func (m *Loader) Load(uri string, router *mux.Router) error
- func (m *Loader) LoadWorkbook(wb *SimpleWorkbook, router *mux.Router) error
- func (e *Loader) Refresh(dbname string, data interface{}, format string) error
- func (m *Loader) Reload(uri string) error
- type Manager
- type MapManager
- type NamedIndexEntry
- type ShortBed
- type SimpleWorkbook
- type TabixManager
- func (T *TabixManager) AddURI(uri string, key string) error
- func (m *TabixManager) Del(key string) error
- func (m *TabixManager) Get(key string) (string, bool)
- func (m *TabixManager) GetAttr(key string) (map[string]interface{}, bool)
- func (m *TabixManager) List() []string
- func (m *TabixManager) Move(key1 string, key2 string) bool
- func (T *TabixManager) ServeTo(router *mux.Router)
- func (m *TabixManager) SetAttr(key string, value map[string]interface{}) error
- type TrackManager
- func (m *TrackManager) Add(key string, reader io.ReadSeeker, uri string) error
- func (m *TrackManager) AddURI(uri string, key string) error
- func (m *TrackManager) Del(k string) error
- func (m *TrackManager) Get(key string) (string, bool)
- func (m *TrackManager) GetAttr(key string) (map[string]interface{}, bool)
- func (m *TrackManager) List() []string
- func (m *TrackManager) Move(key1 string, key2 string) bool
- func (m *TrackManager) ServeTo(router *mux.Router)
- func (m *TrackManager) SetAttr(key string, values map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Asset ¶
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
func AssetDir ¶
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:
data/ foo.txt img/ a.png b.png
then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.
func AssetInfo ¶
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
func IterEntry ¶
func IterEntry(d DataManager) chan Entry
func MustAsset ¶
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func ParseSimpleWb ¶
func ParseSimpleWb(xlFile *SimpleWorkbook) ([]dataIndex, error)
JSON -> Simple Workbook parsed already
func RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively
Types ¶
type BigBedManager ¶
type BigBedManager struct {
// contains filtered or unexported fields
}
func InitBigBedManager ¶
func InitBigBedManager(dbname string, root string) *BigBedManager
func NewBigBedManager ¶
func NewBigBedManager(uri string, dbname string, root string) *BigBedManager
func (*BigBedManager) Add ¶
func (m *BigBedManager) Add(key string, reader io.ReadSeeker, uri string) error
func (*BigBedManager) Del ¶
func (m *BigBedManager) Del(key string) error
func (*BigBedManager) GetAttr ¶
func (m *BigBedManager) GetAttr(key string) (map[string]interface{}, bool)
func (*BigBedManager) List ¶
func (m *BigBedManager) List() []string
func (*BigBedManager) ServeTo ¶
func (m *BigBedManager) ServeTo(router *mux.Router)
type BigWigManager ¶
type BigWigManager struct {
// contains filtered or unexported fields
}
func InitBigWigManager ¶
func InitBigWigManager(dbname string, indexRoot string) *BigWigManager
func NewBigWigManager ¶
func NewBigWigManager(uri string, dbname string, indexRoot string) *BigWigManager
func (*BigWigManager) Add ¶
func (m *BigWigManager) Add(key string, reader io.ReadSeeker, uri string) error
func (*BigWigManager) Del ¶
func (m *BigWigManager) Del(key string) error
func (*BigWigManager) GetAttr ¶
func (m *BigWigManager) GetAttr(key string) (map[string]interface{}, bool)
func (*BigWigManager) List ¶
func (m *BigWigManager) List() []string
func (*BigWigManager) ServeTo ¶
func (m *BigWigManager) ServeTo(router *mux.Router)
TODO ls Add Attr
type CytoBandManager ¶
type CytoBandManager struct {
// contains filtered or unexported fields
}
func InitCytoBandManager ¶
func InitCytoBandManager(id string) *CytoBandManager
func NewCytoBandManager ¶
func NewCytoBandManager(id string) *CytoBandManager
func (*CytoBandManager) Add ¶
func (m *CytoBandManager) Add(genome string) error
func (*CytoBandManager) Del ¶
func (m *CytoBandManager) Del(genome string) error
func (*CytoBandManager) List ¶
func (m *CytoBandManager) List() []string
func (*CytoBandManager) ServeTo ¶
func (m *CytoBandManager) ServeTo(router *mux.Router)
type DataLoader ¶
type DataLoader interface {
Load(interface{}) error
}
type DataManager ¶
type DataRouter ¶
type DataServer ¶
type DataServer interface { DataRouter DataLoader }
type FileManager ¶
type FileManager struct {
// contains filtered or unexported fields
}
func InitFileManager ¶
func InitFileManager(dbname string) *FileManager
func NewFileManager ¶
func NewFileManager(uri string, dbname string) *FileManager
func (*FileManager) Del ¶
func (m *FileManager) Del(key string) error
func (*FileManager) List ¶
func (m *FileManager) List() []string
func (*FileManager) ServeTo ¶
func (m *FileManager) ServeTo(router *mux.Router)
type HicManager ¶
type HicManager struct {
// contains filtered or unexported fields
}
func InitHicManager ¶
func InitHicManager(dbname string) *HicManager
func NewHicManager ¶
func NewHicManager(uri string, dbname string) *HicManager
func (*HicManager) Add ¶
func (m *HicManager) Add(key string, reader io.ReadSeeker, uri string) error
func (*HicManager) Del ¶
func (m *HicManager) Del(key string) error
func (*HicManager) GetAttr ¶
func (m *HicManager) GetAttr(key string) (map[string]interface{}, bool)
func (*HicManager) List ¶
func (m *HicManager) List() []string
func (*HicManager) ServeTo ¶
func (m *HicManager) ServeTo(router *mux.Router)
type IndexEntry ¶
TODO THIS add more interface
type Loader ¶
type Loader struct { IndexRoot string Plugins map[string]func(string, interface{}) (DataRouter, error) Data map[string]DataRouter // contains filtered or unexported fields }
func (*Loader) AddDataMiddleware ¶
func (*Loader) LoadWorkbook ¶
func (m *Loader) LoadWorkbook(wb *SimpleWorkbook, router *mux.Router) error
type MapManager ¶
type MapManager struct {
// contains filtered or unexported fields
}
func InitMapManager ¶
func InitMapManager(name string) *MapManager
func NewMapManager ¶
func NewMapManager(uri string, name string) *MapManager
func (*MapManager) Del ¶
func (m *MapManager) Del(key string) error
func (*MapManager) List ¶
func (m *MapManager) List() []string
func (*MapManager) ServeTo ¶
func (m *MapManager) ServeTo(router *mux.Router)
type NamedIndexEntry ¶
type SimpleWorkbook ¶
type TabixManager ¶
type TabixManager struct {
// contains filtered or unexported fields
}
func InitTabixManager ¶
func InitTabixManager(dbname string) *TabixManager
func NewTabixManager ¶
func NewTabixManager(uri string, dbname string) *TabixManager
func (*TabixManager) Del ¶
func (m *TabixManager) Del(key string) error
func (*TabixManager) GetAttr ¶
func (m *TabixManager) GetAttr(key string) (map[string]interface{}, bool)
func (*TabixManager) List ¶
func (m *TabixManager) List() []string
func (*TabixManager) ServeTo ¶
func (T *TabixManager) ServeTo(router *mux.Router)
type TrackManager ¶
type TrackManager struct {
// contains filtered or unexported fields
}
func InitTrackManager ¶
func InitTrackManager(dbname string, root string) *TrackManager
func NewTrackManager ¶
func NewTrackManager(uri string, dbname string, root string) *TrackManager
func (*TrackManager) Add ¶
func (m *TrackManager) Add(key string, reader io.ReadSeeker, uri string) error
func (*TrackManager) Del ¶
func (m *TrackManager) Del(k string) error
func (*TrackManager) GetAttr ¶
func (m *TrackManager) GetAttr(key string) (map[string]interface{}, bool)
func (*TrackManager) List ¶
func (m *TrackManager) List() []string
func (*TrackManager) ServeTo ¶
func (m *TrackManager) ServeTo(router *mux.Router)
Source Files ¶
- SimpleWorkbook.go
- bbi.go
- bed.go
- bigbedManager.go
- bigwigManager.go
- bindata_assetfs.go
- bwsHandler.go
- colNameToNumber.go
- cytobandManager.go
- dataLoader.go
- dataLoaderRefresh.go
- dataManager.go
- dataRouter.go
- dataRouterParseGSheet.go
- dataRouterParseNamedGSheet.go
- dataRouterParseSimpleWb.go
- dataRouterParseXls.go
- fileManager.go
- gsheets.go
- hicManager.go
- hicsHandler.go
- mapManager.go
- tabixManager.go
- trackManager.go
- utils.go
- web.go