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
binaryColorbinary-colorIf true, show only two colors (minColor and maxColor) to indicate the values of a cell. Otherwise, the color of a cell will be interpolated between minColor and maxColor based on the number of annotations or classes.booleanfalse
colorBycolor-byWhether to color cells by annotations or classes."annotations" | "classes""annotations"
colorScaleExponentcolor-scale-exponentExponent used to scale the color interpolation. A value of 1 will make the scale linear. Values less than 1 will make the color scale more sensitive to smaller values, while values greater than 1 will make it more sensitive to larger values.number0.25
excludeProteinBindingexclude-protein-bindingIf true, will exclude the protein binding GO term (GO:0005515) from the tablebooleantrue
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-aspectIf true, the table will filter out associations that are cross-aspectbooleantrue
filterReferencefilter-referenceComma-separated list of reference prefixes to filter includestring"PMID:,DOI:,GO_REF:,Reactome:"
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-clickableIf true, the group labels are clickable and will trigger the groupClick eventbooleantrue
groupMaxLabelSizegroup-max-label-sizeMaximum size of group labels in characters.number60
hideColumnshide-columnsUsed to hide specific column of the tablestring"qualifier"
maxColormax-colorColor of cells with the most number of annotations or classes. Any valid CSS color string can be used, such as "rgb(24,73,180)", "#1849b4", or "blue".string"rgb(24,73,180)"
maxColorLevelmax-color-levelMaximum number of annotations or classes before maxColor is applied. If 0, the maximum value is determined from the data.number0
minColormin-colorColor of cells with the least number of annotations or classes. Any valid CSS color string can be used, such as "rgb(255,255,255)", "#ffffff", or "white".string"rgb(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"
ribbonDataApiEndpointribbon-data-api-endpointURL for the API endpoint to fetch the ribbon data when subjects are provided.string"https://api.geneontology.org/api/ontology/ribbon/"
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 selectedstringundefined
selectionModeselection-modeSelection mode for the ribbon cells."cell" | "column""cell"
showAllAnnotationsGroupshow-all-annotations-groupIf true, show the "all annotations" group.booleantrue
showOtherGroupshow-other-groupIf true, show the "Other" group for each category.booleantrue
subjectBaseUrlsubject-base-urlBase URL used when rendering subject label links.string"https://amigo.geneontology.org/amigo/gene_product/"
subjectOpenNewTabsubject-open-new-tabIf true, clicking a subject label will open the link in a new tab.booleantrue
subjectPositionsubject-positionPosition subject labels."left" | "none" | "right""left"
subjectssubjectsComma-separated list of gene IDs (e.g. RGD:620474,RGD:3889)stringundefined
subsetsubsetName of the GO subset used for grouping annotations.string"goslim_agr"
tableDataApiEndpointtable-data-api-endpointURL for the API endpoint to fetch the table data when a group is selected. This is used to fetch the annotations for the selected group and subjects.string"https://api.geneontology.org/api/bioentityset/slimmer/function"

CSS Custom Properties

NameDescription
--category-separator-widthWidth of the separator between group categories
--cell-border-collapseCollapse behavior of cell borders, can be collapse or separate
--cell-border-colorColor of cell borders
--cell-border-styleStyle of cell borders
--cell-border-widthWidth of cell borders
--cell-box-shadowBox shadow for cells
--cell-heightHeight of each cell
--cell-hovered-border-colorColor of the border when a cell is hovered
--cell-hovered-border-styleStyle of the border when a cell is hovered
--cell-hovered-border-widthWidth of the border when a cell is hovered
--cell-hovered-box-shadowBox shadow when a cell is hovered
--cell-selected-border-colorColor of the border when a cell is selected
--cell-selected-border-styleStyle of the border when a cell is selected
--cell-selected-border-widthWidth of the border when a cell is selected
--cell-selected-box-shadowBox shadow when a cell is selected
--cell-spacingSpacing between cells (this property has no effect unless --cell-border-collapse is set to separate)
--cell-widthWidth of each cell
--group-all-colorColor for the "all" group labels in each category
--group-all-font-weightFont weight for the "all" group labels in each category
--group-heightHeight of group labels
--group-other-colorColor for the "other" group labels in each category
--group-other-font-weightFont weight for the "other" group labels in each category
--group-selected-colorColor for the selected group labels in each category
--group-text-transformText transformation for group labels
--link-colorColor for links
--link-decorationText decoration for links
--loading-spinner-sizeSize of the loading spinner displayed when loading ribbon or table data
--subject-colorColor of subject cells
--subject-paddingPadding for subject cells
--subject-widthWidth of subject cells
--table-borderBorder style for the table
--table-header-background-colorBackground color for the header row
--table-header-border-colorBorder color for header cells
--table-header-border-styleBorder style for header cells
--table-header-border-widthBorder width for header cells
--table-header-cell-font-weightFont weight for header cells
--table-header-cell-paddingPadding for header cells
--table-header-colorText color for the header row
--table-row-background-colorBackground color for regular rows
--table-row-border-colorBorder color for regular rows
--table-row-border-styleBorder style for regular rows
--table-row-border-widthBorder width for regular rows
--table-row-cell-heightHeight for regular row cells
--table-row-cell-paddingPadding for regular row cells