You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am trying to plot the graph for the output generated after running decomposition as usual and after finding the (1 s.d.) confidence intervals and a quasi-pvalue for each signature using Plot.py. i tried various ways but failed in generating the plot. May be the plot.py needs to be modified or I/O file should be tweeked !!! iam not very sure of it. I have modified the plot.py script as well but its not working for me .I am pasting plot.py (Modified version) for your reference.
I am using input.resamp.sig.txt as my input file for plotting --> let me know if this is correct or should i use some other file.
Let me know how best this can be solved.
Thanks !!!
Ateeq
`
import matplotlib.pyplot as plt
import sys
import numpy as np
import csv
from numpy import genfromtxt
def plot_signature(array, ylim=0.2, ax=None):
color = ((0.196,0.714,0.863),)*16 + ((0.102,0.098,0.098),)*16 + ((0.816,0.180,0.192),)*16 + ((0.777,0.773,0.757),)*16 + ((0.604,0.777,0.408),)*16 + ((0.902,0.765,0.737),)*16
color = list(color)
width = max(array.shape)
x = np.arange(width)
if ax == None:
f,ax = plt.subplots(1)
bars = ax.bar(x, array)
for h in range(len(x)):
bars[h].set_color(color[h])
plt.ylim(0, ylim)
plt.xlim(0, width)
plt.plot('/home/ateeqanees/Mutation/centos/input/plot.jpg')
plt.show()
plot_signature(wines)
`
The text was updated successfully, but these errors were encountered:
Hello All,
i am trying to plot the graph for the output generated after running decomposition as usual and after finding the (1 s.d.) confidence intervals and a quasi-pvalue for each signature using Plot.py. i tried various ways but failed in generating the plot. May be the plot.py needs to be modified or I/O file should be tweeked !!! iam not very sure of it. I have modified the plot.py script as well but its not working for me .I am pasting plot.py (Modified version) for your reference.
I am using input.resamp.sig.txt as my input file for plotting --> let me know if this is correct or should i use some other file.
Let me know how best this can be solved.
Thanks !!!
Ateeq
`
The text was updated successfully, but these errors were encountered: