SELECT ?s ?p ?o WHERE { ?s ?p ?o }
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
"strings" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ------------------------- | |
// Option A | |
// ------------------------- | |
merge := wf.NewProc("merge_"+ind, "bwa sampe {i:ref} {i:sai1} {i:sai2} {i:fq1} {i:fq2} > {o:merged} # {i:refdone} {p:ind}", | |
merge.InParam("ind").FromStr(ind) | |
merge.In("ref").From(ungzipRef.Out("out")) | |
merge.In("refdone").From(indexRef.Out("done")) | |
merge.In("sai1").From(outs[ind]["1"]["sai"]) | |
merge.In("sai2").From(outs[ind]["2"]["sai"]) | |
merge.In("fq1").From(outs[ind]["1"]["fastq"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"strconv" | |
sp "github.com/scipipe/scipipe" | |
spcomp "github.com/scipipe/scipipe/components" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -------------------------------------------------------------------------------------------- | |
# Quick syntax intro | |
# -------------------------------------------------------------------------------------------- | |
# Process definitions: | |
# Processes can be defined as "file:" or "shell:" type. | |
# - The "shell:" type takes a command pattern with the following special syntax: | |
# - {i:portname} defines an in-port (for feeding inputs from upstream processes) | |
# - {o:portname} defines an out-port (where outputs will be sent to connected downstream processes) | |
# - {p:portname} defines a parameter port, where parameters can be fed as a stream of strings | |
# Connections: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parent(mark, jim). | |
parent(sam, mark). | |
grandparent(Grandparent, Child) :- | |
parent(Grandparent, Parent), | |
parent(Parent, Child). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"k8s.io/client-go/kubernetes" | |
"k8s.io/client-go/pkg/api/v1" | |
"k8s.io/client-go/tools/clientcmd" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat {i:targetdata} > {o:filledup} && \ | |
let "fillup_lines_cnt = "$(wc -l {i:targetdata} | awk '{ printf $1 }')" * 2" && \ | |
tail -n +2 {i:rawdata} \ | |
| awk -F"\t" '$9 != "{p:gene}" { $12 "\tN" }' \ | |
| sort \ | |
| uniq \ | |
| shuf --random-source={i:randsrc} \ | |
| head -n $fillup_lines_cnt \ | |
>> {o:filledup} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
bufSize := 1 // Try changing this to 0, and see what happens! | |
ch1, ch2, ch3 := make(chan int, bufSize), make(chan int, bufSize), make(chan int, bufSize) | |
go func() { |