server.js

Summary
server.js
amigo.data.serverThis package was automatically created during an AmiGO 2 installation.
Functions
serverThe configuration for the server settings.
html_baseAccess to AmiGO variable html_base.
app_baseAccess to AmiGO variable app_base.
term_regexpAccess to AmiGO variable term_regexp.
speciesAccess to AmiGO variable species.
ontologiesAccess to AmiGO variable ontologies.
gp_typesAccess to AmiGO variable gp_types.
sourcesAccess to AmiGO variable sources.
species_mapAccess to AmiGO variable species_map.
bbop_img_starAccess to AmiGO variable bbop_img_star.
image_baseAccess to AmiGO variable image_base.
evidence_codesAccess to AmiGO variable evidence_codes.
golr_baseAccess to AmiGO variable golr_base.
term_id_pTrue or false on whether or not a string looks like a GO term id.
get_image_resourceGet a named resource from the meta_data hash if possible.

amigo.data.server

This package was automatically created during an AmiGO 2 installation.

Purpose: Useful information about GO and the AmiGO installation.  Also serves as a repository and getter for web resources such as images.

NOTE: This file is generated dynamically at installation time.  Hard to work with unit tests--hope it’s not too bad.  Want to keep this real simple.

Summary
Functions
serverThe configuration for the server settings.
html_baseAccess to AmiGO variable html_base.
app_baseAccess to AmiGO variable app_base.
term_regexpAccess to AmiGO variable term_regexp.
speciesAccess to AmiGO variable species.
ontologiesAccess to AmiGO variable ontologies.
gp_typesAccess to AmiGO variable gp_types.
sourcesAccess to AmiGO variable sources.
species_mapAccess to AmiGO variable species_map.
bbop_img_starAccess to AmiGO variable bbop_img_star.
image_baseAccess to AmiGO variable image_base.
evidence_codesAccess to AmiGO variable evidence_codes.
golr_baseAccess to AmiGO variable golr_base.
term_id_pTrue or false on whether or not a string looks like a GO term id.
get_image_resourceGet a named resource from the meta_data hash if possible.

Functions

server

amigo.data.server = function()

The configuration for the server settings.  Essentially a JSONification of the config.pl AmiGO 2 file.

Arguments

n/a

html_base

var html_base = meta_data.html_base; this.html_base = function()

Access to AmiGO variable html_base.

Parameters

n/a

Returns

string

app_base

var app_base = meta_data.app_base; this.app_base = function()

Access to AmiGO variable app_base.

Parameters

n/a

Returns

string

term_regexp

var term_regexp = meta_data.term_regexp; this.term_regexp = function()

Access to AmiGO variable term_regexp.

Parameters

n/a

Returns

string

species

var species = meta_data.species; this.species = function()

Access to AmiGO variable species.

Parameters

n/a

Returns

string

ontologies

var ontologies = meta_data.ontologies; this.ontologies = function()

Access to AmiGO variable ontologies.

Parameters

n/a

Returns

string

gp_types

var gp_types = meta_data.gp_types; this.gp_types = function()

Access to AmiGO variable gp_types.

Parameters

n/a

Returns

string

sources

var sources = meta_data.sources; this.sources = function()

Access to AmiGO variable sources.

Parameters

n/a

Returns

string

species_map

var species_map = meta_data.species_map; this.species_map = function()

Access to AmiGO variable species_map.

Parameters

n/a

Returns

string

bbop_img_star

var bbop_img_star = meta_data.bbop_img_star; this.bbop_img_star = function()

Access to AmiGO variable bbop_img_star.

Parameters

n/a

Returns

string

image_base

var image_base = meta_data.image_base; this.image_base = function()

Access to AmiGO variable image_base.

Parameters

n/a

Returns

string

evidence_codes

var evidence_codes = meta_data.evidence_codes; this.evidence_codes = function()

Access to AmiGO variable evidence_codes.

Parameters

n/a

Returns

string

golr_base

var golr_base = meta_data.golr_base; this.golr_base = function()

Access to AmiGO variable golr_base.

Parameters

n/a

Returns

string

term_id_p

this.term_id_p = function(term_id)

True or false on whether or not a string looks like a GO term id.

Parameters

term_idthe string to test

Returns

boolean

get_image_resource

this.get_image_resource = function(resource)

Get a named resource from the meta_data hash if possible.

Parameters

resourcethe string id of the resource

Returns

string (url) of resource

amigo.data.server = function()
The configuration for the server settings.
var html_base = meta_data.html_base; this.html_base = function()
Access to AmiGO variable html_base.
var app_base = meta_data.app_base; this.app_base = function()
Access to AmiGO variable app_base.
var term_regexp = meta_data.term_regexp; this.term_regexp = function()
Access to AmiGO variable term_regexp.
var species = meta_data.species; this.species = function()
Access to AmiGO variable species.
var ontologies = meta_data.ontologies; this.ontologies = function()
Access to AmiGO variable ontologies.
var gp_types = meta_data.gp_types; this.gp_types = function()
Access to AmiGO variable gp_types.
var sources = meta_data.sources; this.sources = function()
Access to AmiGO variable sources.
var species_map = meta_data.species_map; this.species_map = function()
Access to AmiGO variable species_map.
var bbop_img_star = meta_data.bbop_img_star; this.bbop_img_star = function()
Access to AmiGO variable bbop_img_star.
var image_base = meta_data.image_base; this.image_base = function()
Access to AmiGO variable image_base.
var evidence_codes = meta_data.evidence_codes; this.evidence_codes = function()
Access to AmiGO variable evidence_codes.
var golr_base = meta_data.golr_base; this.golr_base = function()
Access to AmiGO variable golr_base.
this.term_id_p = function(term_id)
True or false on whether or not a string looks like a GO term id.
this.get_image_resource = function(resource)
Get a named resource from the meta_data hash if possible.
Close