Example #1
0
    def add_volcano(self):
        """
        As of version 0.13, we will use Javascript directly. 

        # this can be pretty slow. so keep only 1000 most relevant
        # values and 1000 random ones to get an idea of the distribution
        v = VolcanoANOVA(self.report.df, settings=self.settings)
        #v.selector(v.df, 1500, 1500, inplace=True)
        v.volcano_plot_all()
        v.savefig("volcano_all_js")

        self.jinja['volcano'] = '''
            <h3></h3>
            <a href="volcano_all_js.html">
                <img alt="volcano plot for all associations"
                    src="volcano_all_js.png">
            </a>
            <br/>
            <p> A javascript version is available
                <a href="volcano_all_js.html">here</a> (
                or click on the image).</p>
        '''
        """
        v = VolcanoANOVAJS(self.report.df, settings=self.settings)
        self.jinja['volcano_jsdata'] = v.render_all()
Example #2
0
    def add_volcano(self):
        """
        As of version 0.13, we will use Javascript directly. 

        # this can be pretty slow. so keep only 1000 most relevant
        # values and 1000 random ones to get an idea of the distribution
        v = VolcanoANOVA(self.report.df, settings=self.settings)
        #v.selector(v.df, 1500, 1500, inplace=True)
        v.volcano_plot_all()
        v.savefig("volcano_all_js")

        self.jinja['volcano'] = '''
            <h3></h3>
            <a href="volcano_all_js.html">
                <img alt="volcano plot for all associations"
                    src="volcano_all_js.png">
            </a>
            <br/>
            <p> A javascript version is available
                <a href="volcano_all_js.html">here</a> (
                or click on the image).</p>
        '''
        """
        v = VolcanoANOVAJS(self.report.df, settings=self.settings)
        self.jinja['volcano_jsdata'] = v.render_all()
Example #3
0
 def create_pictures(self):
     v = VolcanoANOVAJS(self.df, settings=self.settings)
     html = v.render_drug(self.drug)
     return html
Example #4
0
 def create_pictures(self):
     v = VolcanoANOVAJS(self.df, settings=self.settings)
     html = v.render_drug(self.drug)
     return html