示例#1
0
def cli(ctx, path, job_path, **kwds):
    """Planemo command for running CWL tools and jobs.

    ::

        % planemo cwl_run cat1-tool.cwl cat-job.json
    """
    engine = kwds.get("cwl_engine", "galaxy")
    if engine == "galaxy":
        return cwl.run_galaxy(ctx, path, job_path, **kwds)
    else:
        return cwl.run_cwltool(ctx, path, job_path, **kwds)
示例#2
0
def cli(ctx, path, job_path, **kwds):
    """Planemo command for running CWL tools and jobs.

    ::

        % planemo cwl_run cat1-tool.cwl cat-job.json
    """
    engine = kwds.get("cwl_engine", "galaxy")
    if engine == "galaxy":
        return cwl.run_galaxy(ctx, path, job_path, **kwds)
    else:
        return cwl.run_cwltool(ctx, path, job_path, **kwds)
示例#3
0
 def _run(self, runnable, job_path):
     """Run CWL job using cwltool."""
     return cwl.run_cwltool(self._ctx, runnable, job_path, **self._kwds)
示例#4
0
 def _run(self, runnable, job_path):
     """Run CWL job using cwltool."""
     path = runnable.path
     return cwl.run_cwltool(self._ctx, path, job_path, **self._kwds)