# HG changeset patch -- Bitbucket.org # Project galaxy-dist # URL http://bitbucket.org/galaxy/galaxy-dist/overview # User rc # Date 1287603271 14400 # Node ID b3763f7ecec7082e76a5ff407091fa7f0bffb7df # Parent e226033419a91100e657f6880562dc50ae01ef98 added more zoom levels for mutation viz tool --- a/tools/mutation/visualize.xml +++ b/tools/mutation/visualize.xml @@ -30,6 +30,11 @@ <option value="3">3x</option><option value="4">4x</option><option value="5">5x</option> + <option value="6">6x</option> + <option value="7">7x</option> + <option value="8">8x</option> + <option value="9">9x</option> + <option value="10">10x</option><option value="interactive">Interactive</option></param> --- a/tools/mutation/visualize.py +++ b/tools/mutation/visualize.py @@ -263,8 +263,8 @@ def mainsvg(opts, args): # display legend for i, b in enumerate( bases ): bt = svg.SVG("tspan", b, style="font-family:Verdana;font-size:20%") - s.append(svg.SVG("text", bt, x=12+(i*10), y=4, stroke="none", fill="black")) - s.append(svg.SVG("rect", x=14+(i*10), y=1, width=4, height=3, + s.append(svg.SVG("text", bt, x=12+(i*10), y=3, stroke="none", fill="black")) + s.append(svg.SVG("rect", x=14+(i*10), y=0, width=4, height=3, stroke="none", fill=colors[b], fill_opacity=0.5)) reader = open(opts.input_file, 'U')