How to use the refinem.plots.mpld3_plugins.LinkedBrush function in refinem

To help you get started, we’ve selected a few refinem examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dparks1134 / RefineM / refinem / plots / distribution_plots.py View on Github external
axes_scatter_TD,
                                True)

        if len(genome_stats.mean_coverage) >= 1:
            cov_per_plots = CovPercPlots(self.options)
            cov_per_plots.plot_on_axes(self.fig,
                                    genome_scaffold_stats,
                                    highlight_scaffold_ids,
                                    link_scaffold_ids,
                                    genome_stats.mean_coverage,
                                    [cov_perc],
                                    axes_hist_cov_perc,
                                    axes_scatter_cov_perc,
                                    True)

        mpld3.plugins.connect(self.fig, LinkedBrush(scatter))

        self.fig.tight_layout(pad=1.0, w_pad=0.1, h_pad=0.1)
        self.draw()
github dparks1134 / RefineM / refinem / plots / gc_cov_plot.py View on Github external
self.fig.clear()

        mpld3.plugins.clear(self.fig)
        mpld3.plugins.connect(self.fig, mpld3.plugins.Reset(), mpld3.plugins.BoxZoom(), mpld3.plugins.Zoom())
        mpld3.plugins.connect(self.fig, mpld3.plugins.MousePosition(fontsize=12, fmt='.1f'))

        self.fig.set_size_inches(self.options.width, self.options.height)

        axis = self.fig.add_subplot(111)

        scatter, _, _,  _ = self.plot_on_axes(self.fig, genome_scaffold_stats,
                                                highlight_scaffold_ids, link_scaffold_ids,
                                                mean_gc, mean_coverage,
                                                axis, True)
                                                  
        mpld3.plugins.connect(self.fig, LinkedBrush(scatter))

        self.fig.tight_layout(pad=1, w_pad=1)
        self.draw()
github dparks1134 / RefineM / refinem / plots / tetra_pca_plot.py View on Github external
self.plot_on_axes(self.fig, 2, 1,
                          genome_scaffold_stats,
                          highlight_scaffold_ids,
                          link_scaffold_ids,
                          axis_pc3_pc2, True)

        self.plot_on_axes(self.fig, 0, 2,
                          genome_scaffold_stats,
                          highlight_scaffold_ids,
                          link_scaffold_ids,
                          axis_pc1_pc3, True)

        self.plot_variance(axis_variance)

        mpld3.plugins.connect(self.fig, LinkedBrush(scatter))

        self.fig.tight_layout(pad=1, w_pad=1)
        self.draw()