Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
#labels = list(self.annot_table.index)
#tooltip = mpld3.plugins.PointLabelTooltip(scatter, labels=labels)
ko += 1
io += 1
else:
pass
scatter = ax[-1, j].scatter(pos,
-1*np.log10(self.meQTL.ix[: , 'p-value']),
c=self.ld,
s=size_maf, cmap=cm)
ax[-1, j].set_ylabel('-1*$log_{10}$ p-value', fontsize=15)
ax[-1, j].set_xlabel('Genomic Position (mb)', fontsize=15)
ax[-1, j].set_title('%s eQTL plot' % (self.gene_name,), fontsize=25)
labels = list(self.annot_table.index)
tooltip = mpld3.plugins.PointLabelTooltip(scatter, labels=labels)
mpld3.plugins.connect(fig, tooltip, plugins.LinkedBrush(scatter))
fig.tight_layout()
return(fig)
axes_deltaGC_td,
True)
pc1_td_plot = Scatter(self.options)
pc1_td_plot.plot_on_axes(self.fig,
pc1,
td,
label_plot_order,
'PC 1 (%.1f%%)' % (tetra.variance[0] * 100),
'tetranucleotide distance',
highlight_scaffold_ids,
link_scaffold_ids,
axes_pc1_td,
True)
mpld3.plugins.connect(self.fig, mpld3.plugins.LinkedBrush(scatter))
self.fig.tight_layout(pad=1.0, w_pad=0.1, h_pad=0.1)
self.draw()