Cuneiform (programming language): Difference between revisions

Content deleted Content added
No edit summary
m No lang → <pre>
Line 109:
 
A hello-world script:
<sourcepre>
deftask greet( out : person )in python *{
out = "Hello "+person
Line 115:
 
greet( person: "Peter" "Robert" );
</sourcepre>
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]]:
<sourcepre>
deftask samtools-view( bam( File ) : sam( File ) )in bash *{
samtools view -bS $sam > $bam
}*
</sourcepre>
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.