Matplot

From wubrowse wiki
Jump to: navigation, search

Matplot.png

matplot is a group of numerical tracks plotted in a common track space, sharing the same Y axis. Each individual track is rendered as a trending curve along the genomic axis, and can be told apart from other tracks using different colors.

The matplot track name comes from an R function with same name, which produces very similar plot.

An example of matplot can be found in this hub:

http://epigenomegateway.wustl.edu/browser/?genome=hg19&datahub=http://vizhub.wustl.edu/hubSample/hg19/hub.json

The definition of matplot track is similar to that of methylC track. Following is a matplot example as defined using JSON datahub:

{
    type:'matplot',
    name:'example',
    mode:'show',
    tracks:[

        {
        type:"bedgraph",
        url:"http://vizhub.wustl.edu/hubSample/hg19/GSM469970.gz",
        name:"forward strand",
        colorpositive:"#6633ff",
        },

        {
        type:"bedgraph",
        url:"http://vizhub.wustl.edu/hubSample/hg19/GSM521889.gz",
        name:"reverse strand",
        colorpositive:"#ff6633",
        },

    ],
}

The tracks attribute points to a list of member tracks. Each member track can be defined in its own fashion. Currently only bedGraph and bigWig track types are allowed to compose a matplot track.

Apply matplot from separated tracks

  • see you have a hub with some tracks, like our default tracks

Mat1.png

  • you select multiple tracks by holding Shift key with mouse click

Mat2.png

  • the right click on the selection, choose Apply matplot

Mat3.png

  • the matplot would be placed at the bottom of current window

Mat4.png