biocore / qiime

Official QIIME 1 software repository. QIIME 2 (https://qiime2.org) has succeeded QIIME 1 as of January 2018.
GNU General Public License v2.0
286 stars 267 forks source link

With pyqi + QIIME integration #1168

Open wasade opened 11 years ago

wasade commented 11 years ago

...commands should use decorators:

class QIIMECommand(Command):
    def run(self, **kwargs):
        self._check_requirements(kwargs)
        super(QIIMECommand, self).run(**kwargs)
    def _check_requirements(self, kwargs):
        # do something smart
        pass

class PickOpenReferenceOTUs(QIIMECommand):
    # ...
    @qiime.requires('uclust')
    @qiime.requires('rdp-classifier')
    def run(self, **kwargs):
        pass

That, or we should add in standard requirements support into pyqi

gregcaporaso commented 11 years ago

+1

josenavas commented 11 years ago

That's is awesome! I can see it very useful on pyqi :+1:

rob-knight commented 11 years ago

That's a great idea!

On Oct 30, 2013, at 11:47 AM, josenavas notifications@github.com<mailto:notifications@github.com> wrote:

That's is awesome! I can see it very useful on pyqi [https://github.global.ssl.fastly.net/images/icons/emoji/+1.png]

— Reply to this email directly or view it on GitHubhttps://github.com/qiime/qiime/issues/1168#issuecomment-27417943.