This is the API documentation for CircosAPI.
Values in brackets [] are the default values assigned to the attributes.
Value in parentheses () are the possible values can be assigned to the respective attributes.
Boolean (BOOL) attributes should be set as either yes or no, not Perl’s 1 or 0.
The base class of all objects in CircosAPI. It has methods that retrieve the attributes that the object possesses and print their values out as required of Circos configuration files.
You will not need to use this class explicitly at any point of time.
update(attrs_hash)attrs_hash.DataTrack is the parent class for all data tracks that have rules. Plot, Highlight and Link inherit from this class. Therefore you will not need to use this class explicitly.
fileSTRING
The path name of the data file associated with the data track
rulesARRAYREF
An array that contains all the rules associated with the data track
This is the class that hold all the blocks. You have to initialize this object in order to add other objects to it.
baseideogramimageticksplotsARRAYREF
highlightsARRAYREF
linksARRAYREF
addPlot(Plot)Add a Plot instance (or an array of Plot) into the plots array
addLink(Link)Add a Link instance (or an array of Link)into the links array
addHighlight(Hightlight)Add a Highlight instance (or an array of Highlight) into the highlights array
compile()Takes no argument but return a STRING. This method converts the instances stored to Circos configuration file format as a string
ThisBase class writes all the attributes that are not enclosed in any blocks in the configuration files.
karyotype requiredSTRING (hg16, hg17, hg18, hg19, mm9, rn4, yeast, dm3-lowres, dm3-hires)
The karyotype of your choice will be converted to the path as denoted in karyotypes.json. If you want to change the path of these karyotypes, you can look for karyotypes.json in the defaults directory.
chromosomes_units requiredINTEGER [1000000]
chromosomesSTRING
chromosomes_display_defaultBOOL [yes]
chromosomes_scalechromosomes_reversechromosomes_colorshow_ticksshow_tick_labels
Image class is for the image block in Circos configuration file, i.e
<image>...</image>
dirSTRING [.]
fileSTRING [circos.png]
pngBOOL [yes]
dirBOOL [yes]
radiusSTRING [1500p]
angle_offsetINTEGER [-90]
backgroundSTRING [white]
angle_orientationSTRING []
auto_alpha_colorsBOOL [yes]
auto_alpha_stepsINTEGER [5]
Ideogram class is for the ideogram block in Circos configuration file, i.e
<ideogram>...</ideogram>
showBOOL [yes]
radiusSTRING
thicknessSTRING
fillBOOL
stroke_colorSTRING
stroke_thicknessSTRING
show_bandsBOOL
fill_bandsBOOL
band_transparencyINTEGER
band_stroke_thicknessSTRING
band_stroke_colorSTRING
show_labelBOOL
label_radiusSTRING
label_sizeINTEGER
label_fontSTRING [default] (default, bold, condensed)
label_parallelBOOL
label_with_tagBOOL
label_caseSTRING (upper, lower)
label_formatSTRING
axis_breakBOOL
axis_break_styleINTEGER (1,2)
axis_break_at_edgeBOOL
spacingbreak_styleSpacing is one of the components of Ideogram
Spacing creates a
<spacing>...</spacing>within Ideogram
pairwisesdefaultSTRING
breakSTRING
Pairwise is one of the components of Spacing
Pairwise creates a
<pairwise pair1 pair2>...</pairwise>You need to specify at least
pair1 in order for the block to be fully defined.
pair1STRING
pair2STRING
spacingSTRING
Ticks creates a
<ticks>...</ticks>in the configuration file
radiusSTRING
multipierSTRING
formatSTRING
thicknessSTRING
colorSTRING
tickARRAYREF
Tick is one of the components of Ticks
Tick creates a
<tick>...</tick>in Ticks.
spacingSTRING
chromosomesSTRING
sizeSTRING
thicknessSTRING
colorSTRING
show_labelBOOL
label_sizeSTRING
label_offsetSTRING
formatSTRING
Plot creates a
<plot>...</plot>block. Therefore you need to push this instance into
plots of your CircosAPI instance via its addPlot method.
# Example: $c is your CircosAPI instance, $p is your Plot instance
$c->addPlot($p)tSTRING
t is actually type in Circos configuration. type is a keyword in Perl and therefore, it cannot be used as an attribute. Use t instead. However, it will be printed out as type when you compile the code.
fileSTRING
rulesARRAYREF
Push a Rule instance into this array via the addRule method.
Link creates a
<link>...</link>block. Therefore you need to push this instance into
links of your CircosAPI instance via its addLink method.
# Example: $c is your CircosAPI instance, $l is your Link instance
$c->addLink($l)fileSTRING
rulesARRAYREF
Push a Rule instance into this array via the addRule method.
Highlight creates a
<highlight>...</highlight>block. Therefore you need to push this instance into
highlights of your CircosAPI instance via its addHighlight method.
# Example: $c is your CircosAPI instance, $h is your Highlight instance
$c->addHighlight($h)fileSTRING
rulesARRAYREF
Push a Rule instance into this array via the addRule method.
Rule is one of the components of Plot, Link and Highlight
It creates a
<rule>...</rule>
Rule can be added to any Plot, Link or Highlight via their method addRule
# Example: $t is your Plot instance, $r is your Rule instance
$t->addRule($r)
importanceINTEGER
conditionSTRING
paramsHASHREF
params is a hash that stores all key-value pairs. Only the keys and their values will be printed out in the respective blocks; params will not be printed.
<axes>...</axes>
showSTRING
spacingSTRING
colorSTRING
thicknessINTEGER
positionSTRING
position_skipSTRING
axisARRAYREF
<Axis>...</Axis>
showSTRING
spacingSTRING
colorSTRING
thicknessINTEGER
positionSTRING
position_skipSTRING
axisARRAYREF
showSTRING
addBackground(Background)axis arrayBackground creates a
<background>...</background>in Backgrounds
y0STRING
y1STRING
colorSTRING