Class Biojs.HpaSummaryFeature
Version
1.0.0.
Extends
Biojs.
Defined in: Biojs.HpaSummaryFeature.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Biojs.HpaSummaryFeature(options)
Component to represent one summary feature.
|
| 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)
|
- Methods borrowed from class Biojs:
- addListener, extend, getId, listen, raiseEvent, setEventHandlers, setOptions
| Event Attributes | Event Name and Description |
|---|---|
|
onFeatureSelected(actionPerformed)
|
Class Detail
Biojs.HpaSummaryFeature(options)
Component to represent one summary feature. Originally design to display protein expression information from the Human Protein Atlas (HPA)
Author: Rafael C Jimenez.
Author: Rafael C Jimenez.
var instance = new Biojs.HpaSummaryFeature({
target: 'YourOwnDivId',
title: 'HPA001012 Normal Tissue immunohistochemistry summary',
imageUrl: 'http://www.proteinatlas.org/images/1012/ihc_selected_medium.jpg',
imageTitle: 'Immunohistochemical staining of human lymph node shows strong cytoplasmic positivity in lymphoid cells outside reaction centra',
notes: ["Lymphoid tissues showed moderate to strong cytoplasmic positivity. Remaining normal cells were generally negative","Two (or more) antibodies yielding similar staining patterns which are consistent with available gene/protein characterization data","Expression summary: Selective cytoplasmic expression in lymphoid cells","Reliable score: High","Validation score: Supportive","67 normal tissues by immunohistochemistry"],
linkUrl:'http://www.proteinatlas.org/ENSG00000089820/normal',
linkTitle:'HPA original source',
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} title
- Title of the summary
- {string} imageUrl
- URL of an image file with expression data
- {string} imageTitle
- Title or description of an image file with expression data
- {string} notes
- List of point including summary information for this feature
- {string} linkUrl
- List of points including summary information for this feature
- {string} linkTitle
- List of points including summary information for this feature
- {string} width
- [900px] List of points including summary information for this feature
- {string} imageWidth
- [200px] List of points including summary information for this feature
- Requires:
- jQuery Core 1.6.4
- 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
Event Detail
onFeatureSelected(actionPerformed)
instance.onTextSelected(
function( objEvent ) {
alert(objEvent.textSelected);
}
);
- 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} type
- The name of the event.
- {int} textSelected
- Selected text.