예제 #1
0
    def set_pipeline(self, *args):
        print("set_pipeline", *args)
        print(self.pfamily)

        if self.pipelineframe:
            self.notebook.forget(self.pipelineframe)

        if self.pfamily.get() == 'exomeseq':
            print('exomeseq')
            self.pipelineframe = ExomeSeqFrame(
                self.notebook,
                'ExomeSeq',  #self.pfamily.get(), 
                self.annotation,
                global_info=self)

        elif self.pfamily.get() == 'genomeseq':
            print('genomeseq')
            self.pipelineframe = GenomeSeqFrame(
                self.notebook,
                'GenomeSeq',  #self.pfamily.get(), 
                self.annotation,
                global_info=self)

        elif self.pfamily.get() == 'mirseq':
            print('mirseq')
            self.pipelineframe = MiRSeqFrame(
                self.notebook,
                'miR-Seq',  #self.pfamily.get(), 
                self.annotation,
                global_info=self)

        elif self.pfamily.get() == 'chipseq':
            print('chipseq')
            self.pipelineframe = ChIPSeqFrame(
                self.notebook,
                'ChIPseq',  #self.pfamily.get(), 
                self.annotation,
                global_info=self)
        elif self.pfamily.get() == 'rnaseq':
            print('rnaseq')
            self.pipelineframe = RNASeqFrame(
                self.notebook,
                'RNAseq',  #self.pfamily.get(), 
                self.annotation,
                global_info=self)
        else:
            return
            pass

        self.notebook.select(self.pipelineframe)
예제 #2
0
    def set_pipeline(self, *args):
        print("set_pipeline", *args)
        print(self.pfamily.get())
        print(self.annotation.get())
        annotation = self.annotation.get()
        set1 = [
            'Select the genome', 'hg19', 'mm10', 'mm9', 'hg38', 'hs37d5',
            'hs38d1', 'hg38_30_KSHV', 'hg38_HPV16', 'canFam3', 'Mmul_8.0.1',
            'hg38_30', 'mm10_M21'
        ]
        set2 = ['Select the genome', 'hg19', 'mm10', 'mm9', 'hg38']
        set3 = ['Select the genome', 'GRCh38', 'mm10']
        set4 = ['Select the genome', 'hg19', 'mm10', 'hg38']

        if self.pipelineframe:
            self.notebook.forget(self.pipelineframe)

        if self.pfamily.get() == 'exomeseq':
            print('exomeseq')
            if not annotation in set4:
                outtxt_short = "%s is not supported in this pipeline!" % (
                    annotation)
                showinfo("WARNING", outtxt_short)
            self.pipelineframe = ExomeSeqFrame(
                self.notebook,
                'ExomeSeq',  #self.pfamily.get(), 
                self.annotation,
                global_info=self)

        elif self.pfamily.get() == 'genomeseq':
            print('genomeseq')
            if not annotation in set4:
                outtxt_short = "%s is not supported in this pipeline!" % (
                    annotation)
                showinfo("WARNING", outtxt_short)
            self.pipelineframe = GenomeSeqFrame(
                self.notebook,
                'GenomeSeq',  #self.pfamily.get(), 
                self.annotation,
                global_info=self)

        elif self.pfamily.get() == 'mirseq':
            print('mirseq')
            if not annotation in set2:
                outtxt_short = "%s is not supported in this pipeline!" % (
                    annotation)
                showinfo("WARNING", outtxt_short)
            self.pipelineframe = MiRSeqFrame(
                self.notebook,
                'miR-Seq',  #self.pfamily.get(), 
                self.annotation,
                global_info=self)

        elif self.pfamily.get() == 'ChIPseq':
            print('ChIPseq')
            if not annotation in set1:
                outtxt_short = "%s is not supported in this pipeline!" % (
                    annotation)
                showinfo("WARNING", outtxt_short)
            self.pipelineframe = ChIPSeqFrame(
                self.notebook,
                'ChIPseq',  #self.pfamily.get(), 
                self.annotation,
                global_info=self)
        elif self.pfamily.get() == 'rnaseq':
            print('rnaseq')
            if not annotation in set1:
                outtxt_short = "%s is not supported in this pipeline!" % (
                    annotation)
                showinfo("WARNING", outtxt_short)
            self.pipelineframe = RNASeqFrame(
                self.notebook,
                'RNAseq',  #self.pfamily.get(), 
                self.annotation,
                global_info=self)
        elif self.pfamily.get() == 'scrnaseq':
            print('scrnaseq')
            if not annotation in set3:
                outtxt_short = "%s is not supported in this pipeline!" % (
                    annotation)
                showinfo("WARNING", outtxt_short)
            self.pipelineframe = scRNASeqFrame(
                self.notebook,
                'scRNAseq',  #self.pfamily.get(), 
                self.annotation,
                global_info=self)
        else:
            return
            pass

        self.notebook.select(self.pipelineframe)