So, you were able to load the annotations into Cytoscape? You can see your annotations in the Table Panel in Cytoscape? Now your question is how to display the annotations as text placed next to the nodes in the network diagram?
There’s an app for that!
You will need to add a new “string” column to your Node Table Panel. Call it “label” for example. And add this text to it:
label: attribute=goterms labelsize=10 outline=false background=false color=black dropShadow=false
Replace “goterms" with the name of the column in your network that contains your imported GO terms. After entering the text, right-click on that entry and choose “Apply to entire column”. This will copy it all nodes. You can see all the options in the text string for how it is displayed. If you want to change any of those (e.g., labelsize=12), then you can simply change one and then repeat the “Apply to entire column” to update all of them.
Now you have to set the visual property to use this new “label” column:
In the Style Panel, click on the mapping cell for “Image/Chart 1”. Choose the “label” column and choose “passthrough” mapping.
Now you should see your extra labels displayed. To position them relative to the node, you have to edit another visual property:
Under the properties pull down at the top of the Style Panel, choose “Paint > Custom Paint 1 > Image/Chart Position 1”.
Go to the newly displayed property and click on the default cell. Move things around and play with the x,y offsets until you like the position.
Done!
A description of all the options for the label type of enhanced graphic is available here: