Exemplo n.º 1
0

"""
#################################################
#
from bioconvert.core.graph import create_graph

#####################################################
# If you use pygraphviz, you can have a good quality
# image using:
import matplotlib as mpl
mpl.rcParams['figure.dpi'] = 250

############################################################
# In order to create the following image, you need graphviz
# and pygraphviz.
# If you cannot install those packages, you may use a singularity
# image like in the following example by setting the use_singularity
# parameter to True. This would work under Linux. Not tested on other systems
# yet.
create_graph("conversion.png", use_singularity=True)

#####################################################
#
from pylab import imshow, imread, xticks, yticks, gca
imshow(imread("conversion.png"), interpolation="nearest")
xticks([])
yticks([])
ax = gca()
ax.axis('off')
Exemplo n.º 2
0
"""
Possible Conversion
====================

Plot directed graph of possible conversion


"""
#################################################
#
from bioconvert.core.graph import create_graph


#####################################################
# Get a data set (BAM file) for testing
create_graph("conversion", format="png")

####################################################
# 
from pylab import imshow, imread, xticks, yticks, gca
imshow(imread("conversion.png"))
xticks([])
yticks([])
ax = gca()
ax.axis('off')
Exemplo n.º 3
0
# Create the main image 
from bioconvert.core.graph import create_graph
import matplotlib as mpl
mpl.rcParams['figure.dpi']= 250
create_graph("conversion.png", color_for_disabled_converter="black")
create_graph("conversion-local.png")
Exemplo n.º 4
0
from bioconvert.core.graph import create_graph
import matplotlib as mpl
mpl.rcParams['figure.dpi'] = 250
create_graph("conversion.png")
Exemplo n.º 5
0
def test_create_graph():
    with TempFile(suffix=".png") as fout:
        create_graph(fout.name, use_singularity=False)