Skip to main content

go-annotation-ribbon

Overview

The Annotation Ribbon component summarizes GO annotation as a grid of cells. Each row in the grid (called "strips") 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.

When a cell is clicked, a table of annotations is displayed below the strips. The table shows the details of the annotations for the selected subject and term.

For advanced use cases, the individual components of the ribbon can be used separately: strips, table.

Usage

Basic Usage

<go-annotation-ribbon subjects="RGD:620474,RGD:3889"></go-annotation-ribbon>

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
excludePBexclude-p-bbooleantrue
filterByfilter-byFilter rows based on the presence of one or more values in a given column The filtering will be based on cell label or id Example: filter-by="evidence:ISS,ISO or multi-step filters: filter-by:evidence:ISS,ISO;term:xxx" Note: if value is "", remove any filteringstringundefined
filterCrossAspectfilter-cross-aspectbooleantrue
filterReferencefilter-referencestring"PMID:,DOI:,GO_REF:,Reactome:"
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/"
groupBygroup-byUsing this parameter, the table rows can bee grouped based on column ids A multiple step grouping is possible by using a ";" between groups The grouping applies before the ordering Example: hid-1,hid-3 OR hid-1,hid-3;hid-2 Note: if value is "", remove any groupingstring"term,qualifier"
groupClickablegroup-clickablebooleantrue
groupMaxLabelSizegroup-max-label-sizenumber60
groupNewTabgroup-new-tabbooleantrue
hideColumnshide-columnsUsed to hide specific column of the tablestring"qualifier"
maxColormax-colorstring"24,73,180"
maxHeatLevelmax-heat-levelnumber48
minColormin-colorstring"255,255,255"
orderByorder-byThis is used to sort the table depending of a column The column cells must be single values The ordering applies after the grouping Note: if value is "", remove any orderingstring"term"
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-groupadd a cell at the end of each row/subject to represent all annotations not mapped to a specific termbooleantrue
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"