Download BUBBLE.zip and click *.html file(in BUBBLE.zip) to open this demo in local browser!.
Users should prepare the input data in the following format (separated by tabs).
#chr start end name value color layer
chr6 1 100 TP53 0.1 red 3
chr6 100 200 TP53 0.4 blue 3
chr6 200 300 TP53 0.8 green 3
chr6 300 400 TP53 0.9 red 3
......
chr6 600 700 TP53 0.8 red 1
chr6 700 800 TP53 0.2 blue 1
chr6 800 900 TP53 0.6 green 1
chr6 900 1000 TP53 0.5 green 1
Following fields are required:
The 1 column(chr
) is the name of the chromosome.
The 2 column(start
) is the start of the region.
The 3 column(end
) is the end of the region.
The 4 column(name
) is the name of the bubble.
The 5 column(value
) is the value of the bubble.
The 6 column(color
) is the specific color of the bubble.
The 7 column(layer
) is the layer of the bubble.
python NGCircos_PrepareData.py BUBBLE BUBBLE01.txt > BUBBLE01.js
var BUBBLE01 = [ "BUBBLE01" , {
minRadius: 20,
maxRadius: 80,
blockStroke:true,
blockStrokeColor:"grey",
blockFill:false,
blockFillColor:"white",
bubbleMaxSize:10,
bubbleMinSize:2,
maxColor: "red",
minColor: "yellow",
totalLayer:3,
} , [
{chr: "chr6", start: "1", end: "100", name: "TP53", value: "0.1", color: "red", layer: "3"},
{chr: "chr6", start: "100", end: "200", name: "TP53", value: "0.4", color: "blue", layer: "3"},
{chr: "chr6", start: "200", end: "300", name: "TP53", value: "0.8", color: "green", layer: "3"},
{chr: "chr6", start: "300", end: "400", name: "TP53", value: "0.9", color: "red", layer: "3"},
......
{chr: "chr6", start: "600", end: "700", name: "TP53", value: "0.8", color: "red", layer: "1"},
{chr: "chr6", start: "700", end: "800", name: "TP53", value: "0.2", color: "blue", layer: "1"},
{chr: "chr6", start: "800", end: "900", name: "TP53", value: "0.6", color: "green", layer: "1"},
{chr: "chr6", start: "900", end: "1000", name: "TP53", value: "0.5", color: "green", layer: "1"},
]];
<script src="js/BUBBLE01.js"></script>
NGCircos01 = new NGCircos(BUBBLE01,NGCircosGenome,{ // Initialize with "BUBBLE01" data tag
Download svg ↓