SELECT ?s ?p ?o WHERE { ?s ?p ?o }
This file contains hidden or 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
| #!/bin/bash | |
| # --------------------------------------------------------------------- | |
| # Generate test coverage for .Net core 2 projects. | |
| # --------------------------------------------------------------------- | |
| # Author: Samuel Lampa | |
| # | |
| # This script is supposed to be run in a Windows bash-environment such | |
| # as MSYS2 (See this post for a guide on how to set up one: | |
| # https://bionics.it/posts/linux-like-non-wsl-terminal-env-on-windows) | |
| # |
This file contains hidden or 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 ( | |
| sp "github.com/scipipe/scipipe" | |
| ) | |
| func main() { | |
| wf := sp.NewWorkflow("hello_world", 4) | |
| hello := wf.NewProc("hello", "echo 'Hello ' > {o:out}") |
This file contains hidden or 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 ( | |
| sp "github.com/samuell/scipipe" | |
| ) | |
| func main() { | |
| hello := sp.Sh("echo foo > {o:out}") | |
| hello.OutPathFuncs["out"] = func() string { | |
| return "hello.txt" |
This file contains hidden or 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 hidden or 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 hidden or 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 ( | |
| "encoding/csv" | |
| "encoding/xml" | |
| "io" | |
| "os" | |
| sp "github.com/scipipe/scipipe" | |
| ) |
This file contains hidden or 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 hidden or 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() { |