Skip to main content

go-annotation-ribbon-strips

Overview

The Annotation Ribbon Strips component displays a grid of cells. Each row in the grid represents a subject (typically a gene), and each column represents a GO term. The color of each cell indicates the relative number of GO annotations for that subject to the term or one of its descendants in the ontology hierarchy. The columns are additionally grouped into categories which are visually separated in the display.

Events are fired when cells or cell headers (groups) are clicked or hovered over.

Properties

PropertyAttributeDescriptionTypeDefault
addCellAlladd-cell-alladd a cell at the beginning of each row/subject to show all annotationsbooleantrue
annotationLabelsannotation-labelsstring"annotation,annotations"
baseApiUrlbase-api-urlstring"https://api.geneontology.org/api/ontology/ribbon/"
binaryColorbinary-colorfalse = show a gradient of colors to indicate the value of a cell true = show only two colors (minColor; maxColor) to indicate the values of a cellbooleanfalse
categoryAllStylecategory-all-style0 = Normal 1 = BoldnumberFONT_STYLE.NORMAL
categoryCasecategory-caseOverride of the category case 0 (default) = unchanged 1 = to lower case 2 = to upper casenumberFONT_CASE.LOWER_CASE
categoryOtherStylecategory-other-style0 = Normal 1 = BoldnumberFONT_STYLE.NORMAL
classLabelsclass-labelsstring"term,terms"
colorBycolor-byWhich value to base the cell color on 0 = class count 1 = annotation countnumberCOLOR_BY.ANNOTATION_COUNT
datadataif provided, will override any value provided in subjects and subsetstringundefined
fireEventOnEmptyCellsfire-event-on-empty-cellsIf true, the ribbon will fire an event if a user click an empty cell If false, the ribbon will not fire the event on an empty cell Note: if selectionMode == SELECTION.COLUMN, then the event will trigger if at least one of the selected cells has annotationsbooleanfalse
groupBaseUrlgroup-base-urlstring"http://amigo.geneontology.org/amigo/term/"
groupClickablegroup-clickablebooleantrue
groupMaxLabelSizegroup-max-label-sizenumber60
groupNewTabgroup-new-tabbooleantrue
maxColormax-colorstring"24,73,180"
maxHeatLevelmax-heat-levelnumber48
minColormin-colorstring"255,255,255"
ribbonSummaryribbon-summaryIRibbonModelundefined
selectedselectedIf no value is provided, the ribbon will load without any group selected. If a value is provided, the ribbon will show the requested group as selected The value should be the id of the group to be selectedanyundefined
selectionModeselection-modeClick handling of a cell. 0 = select only the cell (1 subject, 1 group) 1 = select the whole column (all subjects, 1 group)numberSELECTION.CELL
showOtherGroupshow-other-groupbooleanfalse
subjectBaseUrlsubject-base-urlstring"http://amigo.geneontology.org/amigo/gene_product/"
subjectOpenNewTabsubject-open-new-tabbooleantrue
subjectPositionsubject-positionPosition the subject label of each row 0 = None 1 = Left 2 = Right 3 = BottomnumberPOSITION.LEFT
subjectUseTaxonIconsubject-use-taxon-iconbooleanundefined
subjectssubjectsprovide gene ids (e.g. RGD:620474,RGD:3889 or as a list ["RGD:620474", "RGD:3889"])stringundefined
subsetsubsetstring"goslim_agr"
updateOnSubjectChangeupdate-on-subject-changeWhen this is set to false, changing the subjects Prop won't trigger the reload of the ribbon This is necessary when the ribbon is showing data other than GO or not using the internal fetchData mechanismbooleantrue

Events

EventDescriptionType
cellClickThis event is triggered whenever a ribbon cell is clickedCustomEvent<any>
cellEnterThis event is triggered whenever the mouse enters a cell areaCustomEvent<any>
cellLeaveThis event is triggered whenever the mouse leaves a cell areaCustomEvent<any>
groupClickThis event is triggered whenever a group cell is clickedCustomEvent<any>
groupEnterThis event is triggered whenever the mouse enters a group cell areaCustomEvent<any>
groupLeaveThis event is triggered whenever the mouse leaves a group cell areaCustomEvent<any>

Methods

selectGroup(group_id: any) => Promise<void>

Parameters

NameTypeDescription
group_idany

Returns

Type: Promise<void>