Download COMPARE.zip and click *.html file(in COMPARE.zip) to open this demo in local browser!.
Before add the COMPARE module, the genome configuration looks like this:
var NGCircosGenome = [
[
["chr8",1000],
]
];
To start using COMPARE module, we will add another group of chromosome as the following:
var NGCircosGenome = [
[
["chr8",1000],
],[
["chr8",1000],
]
];
The code should looks like below:
NGCircos01 = new NGCircos(LOLLIPOP01,NGCircosGenome,{
target:"NGCircos",
svgWidth:900,
svgHeight:600,
svgClassName:"lollipop",
......
compareEvent:true,
compareEventGroupGapRate:0.2, //Empty gap rate
compareEventGroupDistance:100, //Distance between 2 groups
......
Before add the COMPARE module, the COMPARE01.js looks like this:
var WIG01 = [ "WIG01" , {
maxRadius: 200,
minRadius: 150,
WIGStrokeColor: "#3D6390",
WIGColor: "#3D6390",
WIGStrokeType:"cardinal" //linear,cardinal,basis,monotone
} , [
{chr:"chr8",pos:"0.09827044025157233",value:"0.0199"},
{chr:"chr8",pos:"1.3266509433962264",value:"0.0199"},
{chr:"chr8",pos:"2.5550314465408803",value:"0.0199"},
{chr:"chr8",pos:"3.7834119496855347",value:"0.0498"},
......
{chr:"chr8",pos:"996.314858490566",value:"0.0299"},
{chr:"chr8",pos:"997.5432389937107",value:"0.0398"},
{chr:"chr8",pos:"998.7716194968554",value:"0.0896"},
{chr:"chr8",pos:"1000.0",value:"0.1195"},
]];
var WIG02 = [ "WIG02" , {
maxRadius: 200,
minRadius: 150,
WIGStrokeColor: "#3D6390",
WIGColor: "#3D6390",
WIGStrokeType:"cardinal" //linear,cardinal,basis,monotone
} , [
{chr:"chr8",pos:"0.024557353699565337",value:"5"},
{chr:"chr8",pos:"0.5157044276908721",value:"5"},
{chr:"chr8",pos:"1.0068515016821786",value:"4"},
{chr:"chr8",pos:"1.4979985756734855",value:"4"},
......
{chr:"chr8",pos:"998.5265587780261",value:"1"},
{chr:"chr8",pos:"999.0177058520175",value:"1"},
{chr:"chr8",pos:"999.5088529260087",value:"1"},
{chr:"chr8",pos:"1000.0",value:"1"},
]];
To start using COMPARE module, we will add compareGroup (default 1) of chromosome as the following:
var WIG01 = [ "WIG01" , {
compareGroup:2,
maxRadius: 200,
minRadius: 150,
WIGStrokeColor: "#3D6390",
WIGColor: "#3D6390",
WIGStrokeType:"cardinal" //linear,cardinal,basis,monotone
} , [
{chr:"chr8",pos:"0.09827044025157233",value:"0.0199"},
{chr:"chr8",pos:"1.3266509433962264",value:"0.0199"},
{chr:"chr8",pos:"2.5550314465408803",value:"0.0199"},
{chr:"chr8",pos:"3.7834119496855347",value:"0.0498"},
......
{chr:"chr8",pos:"996.314858490566",value:"0.0299"},
{chr:"chr8",pos:"997.5432389937107",value:"0.0398"},
{chr:"chr8",pos:"998.7716194968554",value:"0.0896"},
{chr:"chr8",pos:"1000.0",value:"0.1195"},
]];
var WIG02 = [ "WIG02" , {
compareGroup:1,
maxRadius: 200,
minRadius: 150,
WIGStrokeColor: "#3D6390",
WIGColor: "#3D6390",
WIGStrokeType:"cardinal" //linear,cardinal,basis,monotone
} , [
{chr:"chr8",pos:"0.024557353699565337",value:"5"},
{chr:"chr8",pos:"0.5157044276908721",value:"5"},
{chr:"chr8",pos:"1.0068515016821786",value:"4"},
{chr:"chr8",pos:"1.4979985756734855",value:"4"},
......
{chr:"chr8",pos:"998.5265587780261",value:"1"},
{chr:"chr8",pos:"999.0177058520175",value:"1"},
{chr:"chr8",pos:"999.5088529260087",value:"1"},
{chr:"chr8",pos:"1000.0",value:"1"},
]];
Download svg ↓