示例#1
0
 def outputs(self) -> List[ToolOutput]:
     return [
         ToolOutput("out",
                    DataTypeWithSecondary(),
                    glob=InputSelector("inp"))
     ]
示例#2
0
 def outputs(self) -> List[ToolOutput]:
     return [
         ToolOutput("out", FastqGzPair, glob=WildcardSelector("*.fastq.gz"))
     ]
示例#3
0
 def outputs(self) -> List[ToolOutput]:
     return [ToolOutput("out", Stdout)]
示例#4
0
from janis_core import (
    CommandToolBuilder,
    ToolInput,
    ToolOutput,
    File,
    InputSelector,
    String,
    ToolArgument,
)

ToolWithOptionalOutput = CommandToolBuilder(
    tool="optional_output_tool",
    version="v0.1.0",
    container="ubuntu:latest",
    base_command=[],
    arguments=[ToolArgument("echo 1 > ", shell_quote=False)],
    inputs=[
        ToolInput("outputFilename",
                  String(optional=True),
                  default="out.csv",
                  position=1)
    ],
    outputs=[
        ToolOutput("out",
                   File(optional=True),
                   selector=InputSelector("outputFilename"))
    ],
)
示例#5
0
 def outputs(self):
     return [
         ToolOutput("out",
                    CompressedVcf,
                    glob=InputSelector("outputFilename"))
     ]
示例#6
0
 def outputs(self):
     return [ToolOutput("out", Tsv(), glob=InputSelector("outputFilename"))]