Skip to content

Commit

Permalink
Merge pull request #117 from AliTVTeam/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
iimog authored Aug 5, 2016
2 parents 5678b30 + 9585f1f commit 41513e8
Show file tree
Hide file tree
Showing 10 changed files with 1,053 additions and 238 deletions.
8 changes: 8 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ The licenses of included libraries might differ, please see [[LICENSES/README.or
[[https://travis-ci.org/AliTVTeam/AliTV/][https://travis-ci.org/AliTVTeam/AliTV.svg?branch=master]]
[[https://coveralls.io/github/AliTVTeam/AliTV?branch=master][https://coveralls.io/repos/github/AliTVTeam/AliTV/badge.svg?branch=master]]
** Changelog
*** 0.4.1
- Fix corner cases for move chromosome left/right
- Fix corner cases for move genome up/down
- Add linkOpacity setting (#104)
- Remove circular from headline (#102)
- Fix special characters in id bug (#108)
- Add feature labels
- Update perl part to version 0.1.7
*** 0.4.0 <2016-06-18 Sa>
- Include new perl interface
- Update documentation
Expand Down
27 changes: 24 additions & 3 deletions d3/AliTV.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,19 @@

});

// https://learn.jquery.com/using-jquery-core/faq/how-do-i-select-an-element-by-an-id-that-has-characters-used-in-css-notation/
function jq(myid) {
return "#" + myid.replace(/(:|\.|\[|\]|,)/g, "\\$1");
}

function initialize() {
setJSONEditorFromAli();
ali.onDataChange(setJSONEditorFromAli);
addFeatureGroupTemplates();
ali.onDataChange(addFeatureGroupTemplates);
setParameters();
ali.onDataChange(setParameters);
showHideCircularWarning()
showHideCircularWarning();
ali.onDataChange(showHideCircularWarning);
setSlider();
ali.drawLinear();
Expand Down Expand Up @@ -382,6 +387,16 @@
}
}

function changeLinkOpacity() {
var opacity = $("#linkOpacity").val();
try {
ali.setLinkOpacity(opacity);
} catch (err) {
bootbox.alert(err);
$("#linkOpacity").val(ali.getLinkOpacity());
}
}

function changeGenomeLabelColor() {
var color = $("#genomeLabelColor").val();
try {
Expand Down Expand Up @@ -423,7 +438,7 @@
}

function changeOffset(karyoId) {
var offset = Number($('#offset-' + karyoId).val());
var offset = Number($(jq('offset-' + karyoId)).val());
try {
ali.setOffset(offset, karyoId);
$("#offset-" + karyoId).val(ali.getOffset(karyoId));
Expand Down Expand Up @@ -467,6 +482,7 @@
$('#drawTree').attr('checked', function() {
return ali.conf.tree.drawTree;
});
$("#linkOpacity").val(ali.getLinkOpacity());
setOffsetGroup();
setSlider();
}
Expand All @@ -488,6 +504,7 @@
changeTickDistance();
changeGenomeColor();
changeLinkColor();
changeLinkOpacity();
changeGenomeLabelColor();
changeGenomeLabelSize();
changeTickLabelColor();
Expand Down Expand Up @@ -861,7 +878,7 @@
<body>

<div class="page-header">
<h1><img src="css/AliTV_logo.png" alt="logo" width="200" height="160" style="margin:0px 20px"/><b>AliTV <sup id="version-placeholder"></sup></b><small>&nbsp;Visualize multiple whole genome alignments as circular or linear maps</small></h1>
<h1><img src="css/AliTV_logo.png" alt="logo" width="200" height="160" style="margin:0px 20px"/><b>AliTV <sup id="version-placeholder"></sup></b><small>&nbsp;Visualize multiple whole genome alignments as linear maps</small></h1>
<div>
<ul class="nav nav-tabs" role="tablist">

Expand Down Expand Up @@ -1239,6 +1256,10 @@ <h1><img src="css/AliTV_logo.png" alt="logo" width="200" height="160" style="mar
<input id="maxLinkColor" type="text" class="form-control" />
<span class="input-group-addon"><i></i></span>
</div>
<div class="input-group" style="margin: 10px 10px">
Link opacity:
<input type="text" id="linkOpacity" placeholder="Opacity (0-1)">
</div>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit 41513e8

Please sign in to comment.