Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Err = errors.NewClass("error") ErrNotFound = Err.NewClass("not found", errhttp.SetStatusCode(404)) )
Functions ¶
This section is empty.
Types ¶
type Dataset ¶
type Dataset interface { Name() string Dimensions() int DimMax() float64 SampleTagNames() []string Samples() int GeneSigs() int Genesets() int ListSamples(offset, limit int) ([]Sample, error) ListGeneSigs(offset, limit int) ([]GeneSig, error) ListGenesets(offset, limit int) ([]Geneset, error) GetSample(sampleId string) (Sample, error) GetGeneSig(geneSigId string) (GeneSig, error) GetGeneset(genesetId string) (Geneset, error) NearestSamples(dims []Dimension, f1 SampleFilter, f2 ScoreFilter, offset, limit int) ([]ScoredSample, error) NearestGeneSigs(dims []Dimension, f2 ScoreFilter, offset, limit int) ( []ScoredGeneSig, error) NearestGenesets(dims []Dimension, f ScoreFilter, offset, limit int) ( []ScoredGeneset, error) CombineGenes(genes []Gene) ([]Dimension, error) SearchSamples(keyword string, filter SampleFilter, offset, limit int) ( []ScoredSample, error) SearchGeneSigs(keyword string, offset, limit int) ([]ScoredGeneSig, error) SearchGenesets(keyword string, offset, limit int) ([]ScoredGeneset, error) }
type SampleFilter ¶
func CombineSampleFilters ¶
func CombineSampleFilters(filters ...SampleFilter) SampleFilter
type ScoreFilter ¶
func CombineScoreFilters ¶
func CombineScoreFilters(filters ...ScoreFilter) ScoreFilter
type ScoredGeneSig ¶
type ScoredGeneset ¶
type ScoredSample ¶
Click to show internal directories.
Click to hide internal directories.