Skip to content

Commit

Permalink
Merge pull request #77 from PacificBiosciences/bugfix/miniwdl-pbsv-split
Browse files Browse the repository at this point in the history
Fix for concat_vcf for miniwdl.  Link all inputs into a single directory so that vcfs and indices are together.
  • Loading branch information
williamrowell authored Oct 18, 2023
2 parents ba7126d + b447c8e commit 49ddc79
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions wdl-ci.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@
"tasks": {
"pbsv_call": {
"key": "pbsv_call",
"digest": "77yon47d6t327ocrw6bed3dccyq5t3va",
"digest": "o5xv2etbm2j4s32d5xs626xj6sp2ykmj",
"tests": [
{
"inputs": {
Expand Down Expand Up @@ -457,7 +457,7 @@
"tasks": {
"concat_vcf": {
"key": "concat_vcf",
"digest": "ntfiawmetxbdacle2l7mpu5tkz2jmtz2",
"digest": "xkyvutmrg3gz6zgabdmwcjvcbwrbwwp7",
"tests": [
{
"inputs": {
Expand Down
5 changes: 4 additions & 1 deletion workflows/cohort_analysis/cohort_analysis.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ workflow cohort_analysis {
File gvcf_index = gvcf_object.data_index
}

scatter (region_set in pbsv_splits) {
scatter (shard_index in range(length(pbsv_splits))) {
Array[String] region_set = pbsv_splits[shard_index]

call PbsvCall.pbsv_call {
input:
sample_id = cohort_id + ".joint",
Expand All @@ -41,6 +43,7 @@ workflow cohort_analysis {
reference = reference.fasta.data,
reference_index = reference.fasta.data_index,
reference_name = reference.name,
shard_index = shard_index,
regions = region_set,
mem_gb = pbsv_call_mem_gb,
runtime_attributes = default_runtime_attributes
Expand Down
5 changes: 4 additions & 1 deletion workflows/sample_analysis/sample_analysis.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,17 @@ workflow sample_analysis {
runtime_attributes = default_runtime_attributes
}
scatter (region_set in pbsv_splits) {
scatter (shard_index in range(length(pbsv_splits))) {
Array[String] region_set = pbsv_splits[shard_index]

call PbsvCall.pbsv_call {
input:
sample_id = sample.sample_id,
svsigs = pbsv_discover.svsig,
reference = reference.fasta.data,
reference_index = reference.fasta.data_index,
reference_name = reference.name,
shard_index = shard_index,
regions = region_set,
runtime_attributes = default_runtime_attributes
}
Expand Down

0 comments on commit 49ddc79

Please sign in to comment.