Data / Reactions#
The methods contained within ‘Data / Reactions’ are used to access raw reaction data for all currently loaded submaps.
getAll#
accepts no arguments
triggers loading of reaction data for any submap it hasn’t been fetched for yet, waits until all submaps have finished loading, then resolves
returns a
Promiseresolving to an array ofNewReaction, combining the reactions of every loaded submapexample:
const reactions = await window.minerva.reactions.data.getAll();
Changes in version 22.0#
New fields of NewReaction:
map- the id of the map the reaction belongs to; it replacesmodelline.colorRgba- the color of the reaction line as a#RRGGBBAAstring (example:'#000000FF')
Deprecated fields, still provided so that plugins written for version 21 keep working:
model- usemapline.color- color object{ alpha, rgb }; useline.colorRgbaabbreviation,formula,geneProteinReaction,lowerBound,upperBound,mechanicalConfidenceScore,subsystem,symbolandsynonyms- alwaysnull(synonymsalways empty), the VMH (Recon) annotator that provided them was removed- in
references:annotatorClassName- useannotator, which contains the name of the annotator (example:'HGNC') instead of a Java class name;annotatorClassNamenow contains the same name