Adding Labels

Recent changes in Java security policy might prevent you from running VARNA.
Check out this page for details and ways to solve the problem.

Adding text labels: The annotations example
Java Get Powered

Different types of textual annotations can be added to a VARNA drawing:

  • A - Loop annotations: They are located in the barycenter of a loop, moving along with its bases. As for every other type of annotations, a custom font size can be specified through the color.
  • B - Helix annotations: They are marking a whole helix, moving along with its bases and located within it. For every annotation, a custom color can be specified.
  • C and D - Base annotations: Located on the side of a single base, they can be gently pushed further away to avoid a possible collision with a base number.
  • E - Static annotations: They are drawn at a fixed positions within the panel.

Lastly, substructures can be automatically annotated, as was done in this example with terminal loops using the parameter autoTerminalLoops.

Note to Firefox users: Certain versions of Firefox may be confused by self-signed certificates, and silently prevent the applet from running. If the frame above shows up empty, then try reloading the page.

<applet  code="VARNA.class"
	codebase="bin"
	archive="VARNA.jar"
	<param name="sequenceDBN" value=
	  "                                                       " />
	<param name="structureDBN" value=
	  "((((((.((((((........)))))).((((((.......))))))..))))))" />
	<param name="annotations" value=
	  "A:type=L,anchor=7,size=24;
	   B:type=H,anchor=6,color=#FF0000;
	   C:type=B,anchor=10,color=#0000FF;
	   D:type=B,anchor=11,color=#00FF00;
	   E:type=P,x=300,y=-60,size=34" />
	<param name="autoTerminalLoops" value="true" />
</applet>

Previous page: Color Maps
Next page: Higlighting Regions