def getExtraHistElements(cls, choices):
     hEList = []
     if choices.regionsGSuite:
         hEList.append(HistElement('Repeat regions (bed) GSuite', 'gsuite'))
     if choices.monomersGSuite:
         hEList.append(HistElement('Repeat monomers (bed) GSuite', 'gsuite'))
     return hEList
コード例 #2
0
 def getExtraHistElements(cls, choices):
     if choices.genome and choices.catTrack:
         from quick.webtools.GeneralGuiTool import HistElement
         genome = choices.genome
         outputType = choices.outputType
         catTrack = choices.catTrack.split(':')
         geSource = ExternalTrackManager.getGESourceFromGalaxyOrVirtualTN(
             catTrack, genome)
         return [HistElement(ge.val, outputType) for ge in geSource
                 ] + [HistElement('GSuite from categorical', 'gsuite')]
コード例 #3
0
    def getExtraHistElements(cls, choices):
        fileList = []

        if choices.outFormat == 'gsuite':
            from gold.gsuite.GSuiteConstants import GSUITE_SUFFIX, GSUITE_STORAGE_SUFFIX
            from quick.webtools.GeneralGuiTool import HistElement
            fileList.append( HistElement(cls.HISTORY_PROGRESS_TITLE, 'customhtml') )
            fileList.append( HistElement(cls.HISTORY_HIDDEN_TRACK_STORAGE, GSUITE_STORAGE_SUFFIX, hidden=True))

        return fileList
コード例 #4
0
 def getExtraHistElements(cls, choices):
     from quick.webtools.GeneralGuiTool import HistElement
     return [
         HistElement(
             getGSuiteHistoryOutputName('nopreprocessed',
                                        datasetInfo=choices.history),
             'gsuite'),
         HistElement(
             getGSuiteHistoryOutputName('preprocessed',
                                        datasetInfo=choices.history),
             'gsuite')
     ]
コード例 #5
0
    def getExtraHistElements(cls, choices):
        from quick.webtools.GeneralGuiTool import HistElement
        from gold.gsuite.GSuiteConstants import GSUITE_SUFFIX, GSUITE_STORAGE_SUFFIX
        
        fileList = [HistElement(getGSuiteHistoryOutputName(
                        'nomanipulate', datasetInfo=choices.history), GSUITE_SUFFIX)]
        fileList += [HistElement(getGSuiteHistoryOutputName(
                         'primary', cls.OUTPUT_DESCRIPTION, choices.history), GSUITE_SUFFIX)]
        fileList += [HistElement(getGSuiteHistoryOutputName(
                         'storage', cls.OUTPUT_DESCRIPTION, choices.history),
                         GSUITE_STORAGE_SUFFIX, hidden=True)]

        return fileList
コード例 #6
0
 def getExtraHistElements(cls, choices):
     from quick.webtools.GeneralGuiTool import HistElement
     histList = []
     histList.append(
         HistElement(
             getGSuiteHistoryOutputName('primary',
                                        datasetInfo=choices.gsuite),
             GSuiteConstants.GSUITE_SUFFIX))
     histList.append(
         HistElement(getGSuiteHistoryOutputName('storage',
                                                datasetInfo=choices.gsuite),
                     GSuiteConstants.GSUITE_SUFFIX,
                     hidden=True))
     return histList
コード例 #7
0
 def getExtraHistElements(cls, choices):
     desc = cls.OUTPUT_GSUITE_DESCRIPTION
     return [HistElement(getGSuiteHistoryOutputName(
                             'nointersect', description=desc, datasetInfo=choices.gSuite),
                         GSuiteConstants.GSUITE_SUFFIX),
             HistElement(getGSuiteHistoryOutputName(
                             'primary', description=desc, datasetInfo=choices.gSuite),
                         GSuiteConstants.GSUITE_SUFFIX),
             HistElement(getGSuiteHistoryOutputName(
                             'nopreprocessed', description=desc, datasetInfo=choices.gSuite),
                         GSuiteConstants.GSUITE_SUFFIX),
             HistElement(getGSuiteHistoryOutputName(
                             'preprocessed', description=desc, datasetInfo=choices.gSuite),
                         GSuiteConstants.GSUITE_SUFFIX),
             HistElement(getGSuiteHistoryOutputName(
                             'storage', description=desc, datasetInfo=choices.gSuite),
                         GSuiteConstants.GSUITE_STORAGE_SUFFIX, hidden=True)]
    def getExtraHistElements(cls, choices):
        from quick.webtools.GeneralGuiTool import HistElement
        from gold.gsuite.GSuiteConstants import GSUITE_STORAGE_SUFFIX, GSUITE_SUFFIX

        desc = cls._getOutputHistoryDescription(choices)
        fileList = [
            HistElement(getGSuiteHistoryOutputName('primary', desc),
                        GSUITE_SUFFIX),
            HistElement(getGSuiteHistoryOutputName('storage', desc),
                        GSUITE_STORAGE_SUFFIX,
                        hidden=True)
        ]

        # if choices.archive:
        #for archivedFile in cls._getArchiveReader(choices):
        #    fileList.append( HistElement(archivedFile.title, archivedFile.suffix, hidden=True) )

        return fileList
コード例 #9
0
    def getExtraHistElements(cls, choices):
        from quick.webtools.GeneralGuiTool import HistElement
        fileList = [
            HistElement(
                getGSuiteHistoryOutputName('nodownload',
                                           datasetInfo=choices.history),
                GSUITE_SUFFIX)
        ]
        fileList += [
            HistElement(
                getGSuiteHistoryOutputName('primary',
                                           datasetInfo=choices.history),
                GSUITE_SUFFIX)
        ]
        if choices.preProcess == 'Yes':
            fileList += [
                HistElement(
                    getGSuiteHistoryOutputName('nopreprocessed',
                                               datasetInfo=choices.history),
                    GSUITE_SUFFIX)
            ]
            fileList += [
                HistElement(
                    getGSuiteHistoryOutputName('preprocessed',
                                               datasetInfo=choices.history),
                    GSUITE_SUFFIX)
            ]
        fileList += [
            HistElement(getGSuiteHistoryOutputName(
                'storage', datasetInfo=choices.history),
                        GSUITE_STORAGE_SUFFIX,
                        hidden=True)
        ]

        # if choices.history:
        #from quick.multitrack.MultiTrackCommon import getGSuiteFromGalaxyTN
        #gSuite = getGSuiteFromGalaxyTN(choices.history)
        #
        #for track in gSuite.allTracks():
        #    from gold.gsuite.GSuiteDownloader import getTitleAndSuffixWithCompressionSuffixesRemoved
        #    title, suffix = getTitleAndSuffixWithCompressionSuffixesRemoved(track)
        #    fileList.append( HistElement(title, suffix, hidden=True) )

        return fileList
コード例 #10
0
    def getExtraHistElements(cls, choices):
        if choices.gsuite:
            gSuite = getGSuiteFromGalaxyTN(choices.gsuite)

            newSuffix = cls._getNewSuffixIfAny(choices)

            return [
                HistElement(
                    *cls._getExportTrackTitleAndSuffix(track, newSuffix))
                for track in cls._getSelectedTracks(choices, gSuite)
            ]
コード例 #11
0
    def getExtraHistElements(cls, choices):
        from gold.gsuite.GSuiteConstants import GSUITE_SUFFIX, GSUITE_STORAGE_SUFFIX
        fileList = []

        if choices.outputType and choices.downloadAndPreprocess == 'Yes' and \
                choices.source.find('HyperBrowser') == -1 and \
                choices.transfer != 'Yes':
            from quick.webtools.GeneralGuiTool import HistElement
            desc = unidecode(choices.subCategory)

            fileList += \
                [HistElement(getGSuiteHistoryOutputName('remote', desc), GSUITE_SUFFIX),
                 HistElement(getGSuiteHistoryOutputName('nodownload', desc), GSUITE_SUFFIX),
                 HistElement(getGSuiteHistoryOutputName('primary', desc), GSUITE_SUFFIX),
                 HistElement(getGSuiteHistoryOutputName('nopreprocessed', desc), GSUITE_SUFFIX),
                 HistElement(getGSuiteHistoryOutputName('preprocessed', desc), GSUITE_SUFFIX),
                 HistElement(getGSuiteHistoryOutputName('storage', desc), GSUITE_STORAGE_SUFFIX,
                                                        hidden=True)]

        return fileList
コード例 #12
0
 def getExtraHistElements(cls, choices):
     return [HistElement('synthetic GSuite', 'gsuite')]
コード例 #13
0
 def _getExtraHistElements(cls, choices):
     return [
         HistElement('name ?=?=++0', 'txt'),
         HistElement('name 1', 'html', label='WHAT'),
         HistElement(choices[1], 'gtrack', hidden=True)
     ]
コード例 #14
0
 def getExtraHistElements(cls, choices):
     return [HistElement('Kmers GSuite', 'gsuite')]
コード例 #15
0
ファイル: WizardTestTool1.py プロジェクト: uio-bmi/track_rand
 def getExtraHistElements(cls, choices):
     from quick.webtools.GeneralGuiTool import HistElement
     return [HistElement(cls.NEXT_TOOL_TITLE, 'customhtml')]