Download HISTOGRAM.zip and click *.html file(in HISTOGRAM.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
2L 1 1011544 test histogram 0.8
2L 1011548 2011544 test histogram 0.3
2L 2011548 3011544 test histogram 0.1
2L 2011545 2011546 test histogram 0.01
......
X 18011548 19011544 test histogram 0.83
X 19011548 20011544 test histogram 0.39
X 20011548 21146708 test histogram 0.49
X 21011548 22422827 test histogram 0.83
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 region.
The 5 column(value
) is the value of the region.
python NGCircos_PrepareData.py HISTOGRAM HISTOGRAM01.txt > HISTOGRAM01.js
var HISTOGRAM01 = [ "HISTOGRAM01" , {
maxRadius: 220,
minRadius: 185,
histogramFillColor: "#FF6666",
} , [
{chr: "2L", start: "1", end: "1011544", name: "test histogram", value: "0.8"},
{chr: "2L", start: "1011548", end: "2011544", name: "test histogram", value: "0.3"},
{chr: "2L", start: "2011548", end: "3011544", name: "test histogram", value: "0.1"},
{chr: "2L", start: "2011545", end: "2011546", name: "test histogram", value: "0.01"},
......
{chr: "X", start: "18011548", end: "19011544", name: "test histogram", value: "0.83"},
{chr: "X", start: "19011548", end: "20011544", name: "test histogram", value: "0.39"},
{chr: "X", start: "20011548", end: "21146708", name: "test histogram", value: "0.49"},
{chr: "X", start: "21011548", end: "22422827", name: "test histogram", value: "0.83"},
]];
<script src="js/HISTOGRAM01.js"></script>
NGCircos01 = new NGCircos(HISTOGRAM01,NGCircosGenome,{ // Initialize with "HISTOGRAM01" data tag
Download svg ↓