Class Biojs.HpaSummaryFeatures
Version
1.0.0.
Extends
Biojs.HpaSummaryFeature.
Defined in: Biojs.HpaSummaryFeatures.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Biojs.HpaSummaryFeatures(options)
Component to represent Human Protein Atlas summary protein expression
information from a DAS XML
|
| Field Attributes | Field Name and Description |
|---|---|
| <inner> |
Array containing the supported event names
|
| <inner> |
Default values for the options
|
| Method Attributes | Method Name and Description |
|---|---|
|
constructor(options)
|
|
|
setHpaDasUrl(hpaDasUrl)
Set an URL with HPA DAS XML to start the query and visualization of HPA summary features
|
- Methods borrowed from class Biojs:
- addListener, extend, getId, listen, raiseEvent, setEventHandlers, setOptions
| Event Attributes | Event Name and Description |
|---|---|
|
onRequestError(actionPerformed)
|
- Events borrowed from class Biojs.HpaSummaryFeature:
- onFeatureSelected
Class Detail
Biojs.HpaSummaryFeatures(options)
Component to represent Human Protein Atlas summary protein expression
information from a DAS XML
Author: Rafael C Jimenez.
Author: Rafael C Jimenez.
var instance = new Biojs.HpaSummaryFeatures({
target: 'YourOwnDivId',
hpaDasUrl: 'http://das.proteinatlas.org/das/proteinatlas/features?segment=Q9NTI5',
width: '585px',
imageWidth: '150px'
});
- Parameters:
- {Object} options
- An object with the options for this component.
- Options detailed:
- {string} target
- Identifier of the DIV tag where the component should be displayed.
- {string} hpaDasUrl
- Url pointing to an XML including HPA infomration in DAS format
- {string} width
- [900px] List of points including summary information for this feature
- {string} imageWidth
- [200px] List of points including summary information for this feature
- {string} [proxyUrl='../biojs/dependencies/proxy/proxy.php']
- Since the same origin policy (http://en.wikipedia.org/wiki/Same_origin_policy) in the browsers Biojs include a proxy script in PHP which redirects Ajax requests from local to any other domain. You can use tour own proxy script by modifying this value.
- Requires:
- Biojs.HpaSummaryFeature.css
Field Detail
<inner>
eventTypes
Array containing the supported event names
<inner>
opt
Default values for the options
Method Detail
constructor(options)
- Parameters:
- options
setHpaDasUrl(hpaDasUrl)
Set an URL with HPA DAS XML to start the query and visualization of HPA summary features
instance.setHpaDasUrl("http://www.ebi.ac.uk/~rafael/web/copa/biojs/src/test/data/Q9NTI5_hpa_summary.xml");
instance.setHpaDasUrl("http://www.ebi.ac.uk/~rafael/web/copa/biojs/src/test/data/unknownsegment.xml");
- Parameters:
- {string} hpaDasUrl
- DAS XML with HPA summary information
Event Detail
onRequestError(actionPerformed)
instance.onRequestError(
function( e ) {
alert( e.message );
}
);
- Parameters:
- {function} actionPerformed
- A function which receives an Biojs.Event object as argument.
- Event object data:
- {Object} source
- The component which did triggered the event.
- {string} file
- The name of the loaded file.
- {string} result
- A string with either value 'success' or 'failure'.
- {string} message
- Error message in case of result be 'failure'.