Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Use annots.xml to specify track color, annotation style, and more

An annots.xml file resides in an IGB QuickLoad genome directory. It lists all data files available for that genome.

The file contains one or more file tags, enclosed in a files element. The file tag has attributes that control how the data looks when loaded as new track into IGB. Many options correspond to options you can configure using the Annotation or Graph tabbed panels in  IGB.


attribute

optional

Description

name

Required

The name of the file or a URL. The URL can point to any file, anywhere, provided it's accessible via the internet.

You can specify the location of the file using an absolute URL or a relative URL. Relative means: relative to the genome version directory where the annots.xml file resides.

ex)

name="bamfiles/treatment.bam" (relative)

name="http://www.example.com/bamfiles/treatment.bam" (absolute)

title

Optional

User-friendly text IGB will show in the Data Access Panel as the title of the data set. If you don't provide a title, IGB will display the name attribute instead.

description

Optional

IGB displays this text in the tooltip that appears when the mouse hovers over the data set title in the Data Access tab.

url

Optional

Use this tag to specify the location of a Web page describing the data set. If provided, IGB will display an "info" icon next to the data set title. When users click the icon, their Web browser will open showing the contents of the URL you provide.

You can specify the location of the file using an absolute URL or a relative URL. Relative means: relative to the genome version directory where the annots.xml file resides.

load_hint

Optional

If used, its value should be "Whole Sequence". Using this tag will force IGB to load the entire file when users select the genome version, which is usually appropriate only for reference gene model annotations or other equally small data sets.

label_field

Optional

Use this field to indicate the annotation property (e.g., "score" or "id") that should be used in IGB to label individual annotations.

To find out what annotation properties are available for a file, view the Selection Info for an annotation loaded from the file:

  • Open the file and load some data.
  • Click an annotation to select it.
  • View Selection Info by clicking the "i" button (top left) or opening the Selection Info tab.

Annotation properties are listed in the first column.

background

Optional

Use this field to define track background color. Note you must use six-digit, hexadecimal triplets to specify color, but do not include a leading "#" character.

For example, to specify white background, use background="FFFFFF".

foreground

Optional

Use this field to define annotation or graph colors (e.g. foreground="00FFFF"). See above.

max_depth

Optional

Use this field to define the default maximum stack height for an annotations track. This is the number of annotations shown individually in a stack (e.g., max_depth="10" or max_depth="0" for unlimited)

name_size

Optional

Use this field to define the default track label name font size (e.g. name_size="12")

connected

Optional

Use this field to define the default boolean value for the connected field  (e.g. connected="true" or connected="false"). The default is "true". This tells IGB to draw lines linking the blocks belonging to larger features.

show2tracks

Optional

Use this field to define the default boolean value for the show2Tracks field  (e.g. show2tracks="true" or show2tracks="false"). If you would like minus and plus strand features to be displayed in the same track, set this to "false." The default is "true."

direction_type

Optional

Use this field to dictate whether annotations or alignments will be shown using arrows and/or color to indicate direction.  (e.g. direction_type="arrow", direction_type="color", direction_type="both", direction_type="none"). The default is "none."

positive_strand_color

Optional

Use this field to define the default positive strand color (e.g. positive_strand_color="CCFFFF") for when the direction_type setting is "color."

negative_strand_color

Optional

Use this field to define the default negative strand color (e.g. negative_strand_color="33FFFF") for when the directon_type setting is "color."

  • No labels