Content deleted Content added
Realbadwolf (talk | contribs) No edit summary |
m No lang → <pre> |
||
Line 109:
A hello-world script:
<
deftask greet( out : person )in python *{
out = "Hello "+person
Line 115:
greet( person: "Peter" "Robert" );
</
This script defines a task <code>greet</code> in [[Python (programming language)|Python]] which prepends the string <code>"Hello "</code> to its argument <code>person</code>.
The task has one output variable <code>out</code>.
Line 122:
Command line tools can be integrated by defining a task in [[Bash (Unix shell)|Bash]]:
<
deftask samtools-view( bam( File ) : sam( File ) )in bash *{
samtools view -bS $sam > $bam
}*
</
In this example a task <code>samtools-view</code> is defined.
It calls the tool [[SAMtools]], consuming an input file in SAM format and producing an output file in BAM format.
|