Sorting by Attribute

If tracks are grouped, IGV sorts the tracks in each group. To sort groups by attribute, first sort the ungrouped tracks by the desired attributes, then group the tracks.

To sort tracks based on an attribute value:

Click the attribute name in the attributes panel. IGV sorts the tracks based on the attribute's value.

Alternatively, use the Sort Tracks command for additional options:

Click Tracks>Sort Tracks. IGV displays the Sort window:

Select the attributes to sort by and whether to sort based on ascending or descending values.

Click Ok.

Sorting by Region of Interest

If tracks are grouped, IGV sorts the tracks in each group. It then sorts the groups using a composite score for the group, which IGV defines as the maximum score from the tracks in that group.

To sort tracks in the data panel based on a region of interest:

Define a region of interest on the genome, as shown below.

Click the red bar above the defined region and select an option from the pop-up menu:

Sort by amplification: Affects tracks of copy number data. Sorts tracks based on copy number values in this region, from highest to lowest.

Sort by deletion: Affects tracks of copy number data. Sorts tracks based on copy number values in this region, from lowest to highest.

Sort by breakpoint amplitudes: Affects tracks of copy number data. Sorts tracks by the sum of the absolute value of copy number changes within the region.

Sort by expression: Affects tracks of gene expression data. Sorts tracks based on gene expression in this region, from highest to lowest.

Sort by value: Sorts tracks based on the values of the track data in this region, from highest to lowest.

Delete: Removes this region-of-interest annotation.

Sorting and Filtering by Track List

To display selected tracks in a specific order:

Create a sample information file that contains two columns. The first column must be labeled 'Array' and lists the tracks that you want to display. The second column can be labeled 'Order' (or any other label) and lists the sort order for the tracks.
For example, the following sample information file provides a track list for use with segmented_data_080520.seg:

Array

Order

primary_GBM_10

a

primary_GBM_20

b

primary_GBM_30

c

primary_GBM_40

d

primary_GBM_50

e

primary_GBM_60

f

primary_GBM_70

g

Load the data file and the sample information file that you created in step 1.

Apply a filter to display only those tracks that contain a value for the Order attribute. To do so, select Tracks>Filter Tracks and apply the following filter:
Order is not equal to <leave the text field blank>

Sort the tracks based on the Order attribute. To do so, select Tracks>Sort Tracks and select the Order attribute.

Grouping Tracks by Attribute

To group tracks by attribute:

Select Tracks>Group Tracks and choose an attribute from the drop-down list. IGV organizes the tracks into groups that share the same value for that attribute.

Filtering Track Data

You can filter track data to display only tracks that meet certain criteria.

To filter tracks:

Select Tracks>Filter Tracks. IGV displays the Filter Tracks window:

Enter a filter criterion by selecting an attribute from the first drop-box and an operator from the second drop-box and entering an attribute value in the text box.

Optionally, add additional criteria:

Click the plus (+) button to enter another filter criterion.

Click the minus (-) button to remove a filter criterion.

Determine how the criteria should be combined by choosing one of the following, at the top of the window:

Match all of the following to combine the criteria using a logical AND

Match any of the following to combine the criteria using a logical OR

Click OK to apply the filter.

To clear the filter:

Select Tracks>Filter Tracks.

At the top of the Filter Tracks window, click Show all tracks, then click OK.