Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) GetEnrichment(ctx context.Context, names []string, species int) ([]*Enrichment, error)
- func (c *Client) GetInteractions(ctx context.Context, names []string, species int, limit int) ([]*Interaction, error)
- func (c *Client) ResolveProteins(ctx context.Context, names []string, species int, limit int) ([]*Protein, error)
- type Config
- type Domain
- type Enrichment
- type Interaction
- type Protein
Constants ¶
View Source
const Host = "string-db.org"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetEnrichment ¶
func (c *Client) GetEnrichment(ctx context.Context, names []string, species int) ([]*Enrichment, error)
GetEnrichment returns functional enrichment for a set of proteins.
func (*Client) GetInteractions ¶
func (c *Client) GetInteractions(ctx context.Context, names []string, species int, limit int) ([]*Interaction, error)
GetInteractions returns interactions for the given protein names.
type Config ¶
type Config struct {
BaseURL string
CallerID string
Rate time.Duration
Retries int
Timeout time.Duration
UserAgent string
}
func DefaultConfig ¶
func DefaultConfig() Config
type Enrichment ¶
type Enrichment struct {
Category string `json:"category" kit:"id"`
Term string `json:"term"`
Description string `json:"description"`
Genes int `json:"genes"`
FDR string `json:"fdr"`
InputGenes string `json:"input_genes,omitempty"`
}
Enrichment represents a functional enrichment term.
type Interaction ¶
type Interaction struct {
ProteinA string `json:"protein_a" kit:"id"`
ProteinB string `json:"protein_b"`
NameA string `json:"name_a"`
NameB string `json:"name_b"`
Score float64 `json:"score"`
TextScore float64 `json:"text_score,omitempty"`
ExpScore float64 `json:"exp_score,omitempty"`
DbScore float64 `json:"db_score,omitempty"`
CoexpScore float64 `json:"coexp_score,omitempty"`
}
Interaction represents a protein-protein interaction edge.
Click to show internal directories.
Click to hide internal directories.