-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from quinlan-lab/dev-merge
Candidate for release v0.2.0 - fixed merge conflicts
- Loading branch information
Showing
22 changed files
with
443 additions
and
206 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
str | ||
tests/test_utils | ||
tests/test_strling | ||
src/strpkg/spanning | ||
tests/all | ||
src/strpkg/unpack | ||
src/strpkg/utils | ||
src/strpkg/simulate_reads | ||
src/strling | ||
*.swp |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Bpipe pipelines | ||
|
||
Place the strling executable in your PATH, or set `-p STRLING=/path/to/strling` | ||
|
||
## Individual calling | ||
`bg-bpipe run -p REF=/path/to/ref-genome.fasta strling-individual.groovy *.cram` | ||
|
||
## Joint calling | ||
`bg-bpipe run -p REF=/path/to/ref-genome.fasta strling-joint.groovy *.cram` | ||
|
||
Note that nim does not play nicely with bpipe's ctl-C handing, so have to use the background bpipe command `bg-bpipe` instead of the regular `bpipe`. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//executor="slurm" | ||
executor="local" | ||
|
||
procs="1" | ||
walltime="24:00:00" | ||
memory="16" | ||
|
||
commands { | ||
local { | ||
executor="local" | ||
} | ||
strling { | ||
walltime="04:00:00" | ||
memory="8" | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
STRLING='strling' | ||
|
||
if(args.any { it.endsWith('.cram') }) | ||
input_type = 'cram' | ||
else | ||
input_type='bam' | ||
|
||
def get_fname(path) { | ||
def x = path.split("/")[-1] | ||
return(x) | ||
} | ||
|
||
str_extract = { | ||
def sample = branch.name | ||
def str_ref = get_fname(REF) + ".str" | ||
produce(sample + ".str.bin") { | ||
exec """ | ||
$STRLING extract | ||
-f $REF | ||
-g $str_ref | ||
${input[input_type]} | ||
$output.bin | ||
""","strling" | ||
} | ||
} | ||
|
||
str_merge = { | ||
from("*.bin") produce("strling-bounds.txt") { | ||
exec """ | ||
$STRLING merge | ||
-f $REF | ||
$inputs.bin | ||
""","strling" | ||
} | ||
} | ||
|
||
str_call_individual = { | ||
def sample = branch.name.prefix | ||
from (sample + "*str.bin", sample + "*" + input_type) produce( | ||
sample + "-bounds.txt", sample + "-unplaced.txt", | ||
sample + "-genotype.txt") { | ||
exec """ | ||
$STRLING call | ||
-f $REF | ||
-o $sample | ||
${input[input_type]} | ||
$input.bin | ||
""","strling" | ||
} | ||
} | ||
|
||
str_call_joint = { | ||
def sample = branch.name.prefix | ||
from (sample + "*str.bin", sample + "*" + input_type, "strling-bounds.txt") produce( | ||
sample + "-bounds.txt", sample + "-unplaced.txt", | ||
sample + "-genotype.txt") { | ||
exec """ | ||
$STRLING call | ||
-f $REF | ||
-b $input.txt | ||
-o $sample | ||
${input[input_type]} | ||
$input.bin | ||
""","strling" | ||
} | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Load system configuration and other settings | ||
//load 'pipeline-config.groovy' | ||
|
||
// Load Bpipe pipeline stages | ||
load 'pipeline-stages.groovy' | ||
|
||
run { | ||
"%.${input_type}" * [str_extract + str_call_individual] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Load system configuration and other settings | ||
//load 'pipeline-config.groovy' | ||
|
||
// Load Bpipe pipeline stages | ||
load 'pipeline-stages.groovy' | ||
|
||
run { | ||
"%.${input_type}" * [str_extract] + | ||
str_merge + | ||
"%.bin" * [str_call_joint] //+ str_outlier | ||
} |
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
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
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
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
Oops, something went wrong.