Exemple #1
0
    def _create_report(self, onweb=True):
        # generated pictures and results
        df = self.run()
        odof = self.factory._get_one_drug_one_feature_data(
            self.drug, self.feature)

        # Create the table and add it
        sign = ANOVAResults(df)

        html_table = sign.get_html_table(escape=False,
                                         header=True,
                                         index=False,
                                         add_href=self.add_href)

        self.jinja['association_table'] = html_table

        # Javascript version
        bx = BoxPlotsJS(odof)
        self.jinja["boxplot_all_jsdata"] = bx.get_html_association()

        section = ""
        if self.factory.settings.include_MSI_factor:
            self.jinja["boxplot_msi_jsdata"] = bx.get_html_msi()
        if self.factory.settings.include_media_factor:
            self.jinja["boxplot_media_jsdata"] = bx.get_html_media()
        if self.factory.settings.analysis_type == 'PANCAN':
            self.jinja["boxplot_tissue_jsdata"] = bx.get_html_tissue()

        self.jinja['boxplots'] = section
Exemple #2
0
 def _create_report(self, onweb=True):
     self.jinja['N_hits'] = len(self.subdf)
     if len(self.subdf) > 0:
         sign = ANOVAResults(self.subdf)
         html = sign.get_html_table(escape=False, header=True, index=False)
         self.jinja['association_table'] = html
     self.jinja['volcano_jsdata'] = self.create_pictures()
    def _create_report(self, onweb=True):
        # generated pictures and results
        df = self.run()
        odof = self.factory._get_one_drug_one_feature_data(self.drug, 
                self.feature)

        # Create the table and add it
        sign = ANOVAResults(df)

        html_table = sign.get_html_table(escape=False, header=True,
                index=False)

        self.jinja['association_table'] = html_table

        # Javascript version
        bx = BoxPlotsJS(odof)
        self.jinja["boxplot_all_jsdata"] = bx.get_html_association()

        section = ""
        if self.factory.settings.include_MSI_factor:
            self.jinja["boxplot_msi_jsdata"] = bx.get_html_msi()
        if self.factory.settings.include_media_factor:
            self.jinja["boxplot_media_jsdata"] = bx.get_html_media()
        if self.factory.settings.analysis_type == 'PANCAN':
            self.jinja["boxplot_tissue_jsdata"] = bx.get_html_tissue()

        self.jinja['boxplots'] = section
    def _create_report(self, onweb=True):
        # generated pictures and results
        df = self.run()

        # Create the table and add it
        sign = ANOVAResults(df)

        html_table = sign.get_html_table(escape=False, header=True,
                index=False)

        self.jinja['association_table'] = html_table

        # Main boxplot always included
        prefix = 'images/ODOF_all'
        tag = "{0}_{1}____{2}.png".format(prefix, self.drug, self.feature)
        section = '<img alt="association {0}" src="{0}">\n'.format(tag)

        if self.factory.settings.include_MSI_factor:
            prefix = 'ODOF_msi'
            tag = "{0}_{1}____{2}.png".format(prefix, self.drug, self.feature)
            section += '<img alt="association {0}" src="{0}">\n'.format(tag)
        if self.factory.settings.analysis_type == 'PANCAN':
            prefix = 'ODOF_tissue'
            tag = "{0}_{1}____{2}.png".format(prefix, self.drug, self.feature)
            section += '<img alt="association {0}" src="{0}">\n'.format(tag)
        self.jinja['boxplots'] = section
    def _create_report(self, onweb=True):
        # generated pictures and results
        df = self.run()

        # Create the table and add it
        sign = ANOVAResults(df)

        html_table = sign.get_html_table(escape=False,
                                         header=True,
                                         index=False)

        self.jinja['association_table'] = html_table

        # Main boxplot always included
        prefix = 'images/ODOF_all'
        tag = "{0}_{1}____{2}.png".format(prefix, self.drug, self.feature)
        section = '<img alt="association {0}" src="{0}">\n'.format(tag)

        if self.factory.settings.include_MSI_factor:
            prefix = 'ODOF_msi'
            tag = "{0}_{1}____{2}.png".format(prefix, self.drug, self.feature)
            section += '<img alt="association {0}" src="{0}">\n'.format(tag)
        if self.factory.settings.analysis_type == 'PANCAN':
            prefix = 'ODOF_tissue'
            tag = "{0}_{1}____{2}.png".format(prefix, self.drug, self.feature)
            section += '<img alt="association {0}" src="{0}">\n'.format(tag)
        self.jinja['boxplots'] = section
 def _create_report(self, onweb=True):
     self.jinja['N_hits'] = len(self.subdf)
     if len(self.subdf) > 0:
         sign = ANOVAResults(self.subdf)
         html = sign.get_html_table(escape=False, 
                 header=True, index=False)
         self.jinja['association_table'] = html
     self.jinja['volcano_jsdata'] =  self.create_pictures()
    def _create_report(self, onweb=True):
        self.create_pictures()

        self.jinja['N_hits'] = len(self.subdf)
        if len(self.subdf) > 0:
            sign = ANOVAResults(self.subdf)
            html = sign.get_html_table(escape=False, 
                    header=True, index=False)
            self.jinja['association_table'] = html

        # image section
        self.jinja['image_filename'] = "images/volcano_{0}".format(self.feature)
    def _create_report(self, onweb=True):
        self.create_pictures()

        self.jinja['N_hits'] = len(self.subdf)
        if len(self.subdf) > 0:
            sign = ANOVAResults(self.subdf)
            html = sign.get_html_table(escape=False, header=True, index=False)
            self.jinja['association_table'] = html

        # image section
        self.jinja['image_filename'] = "images/volcano_{0}".format(
            self.feature)
Exemple #9
0
    def _create_report(self, onweb=True):
        #self.create_pictures()

        # add the table
        self.jinja['synonyms'] = ''
        self.jinja['brand_name'] = ''
        self.jinja['conc_min'] = '?'
        self.jinja['conc_max'] = '?'

        # Table section
        self.jinja['N_hits'] = len(self.subdf)
        if len(self.subdf) > 0:
            sign = ANOVAResults(self.subdf)
            html = sign.get_html_table(escape=False, header=True, index=False)
            self.jinja['association_table'] = html

        # image section
        self.jinja['volcano_jsdata'] = self.create_pictures()
    def _create_report(self, onweb=True):
        #self.create_pictures()

        # add the table
        self.jinja['synonyms'] = ''
        self.jinja['brand_name'] = ''
        self.jinja['conc_min'] = '?'
        self.jinja['conc_max'] = '?'

        # Table section
        self.jinja['N_hits'] = len(self.subdf)
        if len(self.subdf) > 0:
            sign = ANOVAResults(self.subdf)
            html = sign.get_html_table(escape=False, 
                    header=True, index=False)
            self.jinja['association_table'] = html

        # image section
        self.jinja['volcano_jsdata'] =  self.create_pictures()