Methods
calculateMotifs()
Calculates significance of subgraphs and returns an array of indices corresponding to subgraphs in motifs.json
that were calculated to be motifs. Also returns a mapping from motifs to views containing that motif.
- Source:
clearResults()
Clears the results table
- Source:
drawResults()
Draws the motifs calculated by calculateMotifs() and lists the corresponding execution labels beside the graph
- Source:
highlightMotif(motifIndex)
This function is responsible for highlighting the motif at the given motifIndex in the active views
Parameters:
Name | Type | Description |
---|---|---|
motifIndex |
Number | The index of the relevant motif in motifs.json |
- Source:
sortLabels(labels, motifIndex) → {Array.<String>}
Sorts the view labels by descending number of instances of the motif at the given motifIndex
Parameters:
Name | Type | Description |
---|---|---|
labels |
Array.<String> | The labels for the views |
motifIndex |
Number | the index of the relevant motif in motifs.json |
- Source:
Returns:
labels The sorted labels
- Type
- Array.<String>
sortMotifs(motifs) → {Array.<Number>}
Sorts the given motifs in the order they appear in motifs.json
Parameters:
Name | Type | Description |
---|---|---|
motifs |
Array.<Number> | Indices of motifs |
- Source:
Returns:
motifs The sorted motifs
- Type
- Array.<Number>