def scoreHists(scoresFN,outFN,numBins,geneNames,scoreType):
'''Read through a scores file, and separate into all pairwise comparisons. Then plot hist of each.'''
# currently, this seems to require a display for interactive
# plots. would be nice to make it run without that...
pairD = readScorePairs(scoresFN,geneNames,scoreType)
pyplot.ioff() # turn off interactive mode
with PdfPages(outFN) as pdf:
for key in pairD:
fig = pyplot.figure()
pyplot.hist(pairD[key],bins=numBins)
pyplot.title('-'.join(key))
pdf.savefig()
pyplot.close()
评论列表
文章目录