Skip to content

Commit

Permalink
Merge branch 'devel' of github.com:wtsi-npg/p4
Browse files Browse the repository at this point in the history
  • Loading branch information
dozy committed Jan 26, 2024
2 parents 388547d + a97c4dd commit 744ce57
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
21 changes: 14 additions & 7 deletions data/vtlib/final_output_prep.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
}
},
{
"id":"crai_file",
"id":"cram_index_file",
"subst_constructor":{
"vals":[ {"subst":"outdatadir"}, "/", {"subst":"fopid"}, {"subst":"cram_idx_ext"} ],
"postproc":{"op":"concat", "pad":""}
Expand Down Expand Up @@ -366,9 +366,14 @@
{
"id":"cram_index",
"type":"EXEC",
"use_STDIN": true,
"use_STDIN": false,
"use_STDOUT": false,
"cmd":[ "cram_index", "-", {"subst":"crai_file"} ]
"cmd": [
{"subst":"samtools_executable", "required":true, "ifnull":"samtools"}, "index",
"-o", {"port":"idx", "direction":"out"},
{"subst":"cram_index_extra_flags", "required":false},
{"port":"cram", "direction":"in"}
]
},
{
"id":"cram_seqchksum",
Expand Down Expand Up @@ -461,14 +466,15 @@
"use_STDOUT": false,
"cmd": [
{"subst":"samtools_executable", "required":true, "ifnull":"samtools"}, "index",
"-o", {"port":"idx", "direction":"out"},
{"subst":"diskbam_extra_flags", "required":false},
{"port":"bam", "direction":"in"},
{"port":"idx", "direction":"out"}
{"port":"bam", "direction":"in"}
]
},
{ "id":"bam_file", "type":"RAFILE", "name":{"subst":"bam_file"} },
{ "id":"bam_index_file", "type":"OUTFILE", "name":{"subst":"bam_index_file"} },
{ "id":"cram_file", "type":"OUTFILE", "name":{"subst":"cram_file"} },
{ "id":"cram_index_file", "type":"OUTFILE", "name":{"subst":"cram_index_file"} },
{ "id":"bam_md5", "type":"OUTFILE", "name":{"subst":"bam_md5"} },
{ "id":"cram_md5", "type":"OUTFILE", "name":{"subst":"cram_md5"} },
{ "id":"seqchksum_file", "type":"RAFILE", "name":{"subst":"seqchksum_file"} },
Expand Down Expand Up @@ -517,7 +523,8 @@
}
},
{ "id":"cram_tee_to_md5", "from":"cram_tee:md5", "to":"create_cram_md5" },
{ "id":"cram_tee_to_crai", "from":"cram_tee:crai", "to":"cram_index" },
{ "id":"cram_tee_to_crai", "from":"cram_tee:crai", "to":"cram_index:cram" },
{ "id":"cidx_to_file", "from":"cram_index:idx", "to":"cram_index_file" },
{ "id":"cram_tee_to_bscs", "from":"cram_tee:seqchksum", "to":"cram_seqchksum" },
{ "id":"md5_to_postprocess", "from":"create_cram_md5", "to":"postprocess_md5" },
{ "id":"bmdmw_to_sts_F0x900", "from":"bmd_multiway:samtools_stats_F0x900", "to":"samtools_stats_F0x900" },
Expand All @@ -535,7 +542,7 @@
{ "id":"bmd_to_bam", "from":"bmd_multiway:bam", "to":"diskbam" },
{ "id":"stv_to_bam", "from":"diskbam", "to":"bam_file" },
{ "id":"bam_to_idx", "from":"bam_file", "to":"bam_index:bam" },
{ "id":"idx_to_file", "from":"bam_index:idx", "to":"bam_index_file" },
{ "id":"bidx_to_file", "from":"bam_index:idx", "to":"bam_index_file" },
{ "id":"bmw_to_md5", "from":"bmd_multiway:md5", "to":"create_bam_md5" },
{ "id":"md5_to_bam_postprocess", "from":"create_bam_md5", "to":"postprocess_bam_md5" },
{ "id":"corrected_bam_md5_out", "from":"postprocess_bam_md5", "to":"bam_md5" },
Expand Down
13 changes: 10 additions & 3 deletions data/vtlib/merge_final_output_prep.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
}
},
{
"id":"crai_file",
"id":"cram_index_file",
"subst_constructor":{
"vals":[ {"subst":"outdatadir"}, "/", {"subst":"library"}, {"subst":"cram_idx_ext"} ],
"postproc":{"op":"concat", "pad":""}
Expand Down Expand Up @@ -198,7 +198,12 @@
"type":"EXEC",
"use_STDIN": true,
"use_STDOUT": false,
"cmd":[ "cram_index", "-", {"subst":"crai_file"} ]
"cmd": [
{"subst":"samtools_executable", "required":true, "ifnull":"samtools"}, "index",
"-o", {"port":"idx", "direction":"out"},
{"subst":"cram_index_extra_flags", "required":false},
{"port":"cram", "direction":"in"}
]
},
{
"id":"cram_seqchksum",
Expand Down Expand Up @@ -271,6 +276,7 @@
}
},
{ "id":"local_cram_file", "type":"OUTFILE", "name":{"subst":"local_cram_file"} },
{ "id":"cram_index_file", "type":"OUTFILE", "name":{"subst":"cram_index_file"} },
{ "id":"cram_md5", "type":"OUTFILE", "name":{"subst":"cram_md5"} },
{ "id":"seqchksum_file", "type":"RAFILE", "name":{"subst":"seqchksum_file"} },
{ "id":"seqchksum_file_cram", "type":"RAFILE", "name":{"subst":"seqchksum_file_cram"}, "comment":"this file is a temporary fix for blocking problems at the cmp_seqchksum node" },
Expand Down Expand Up @@ -309,7 +315,8 @@
{ "id":"bmdmw_to_b2c", "from":"bmd_multiway:b2c", "to":"bam2cram" },
{ "id":"b2c_to_cram_tee", "from":"bam2cram", "to":"cram_tee" },
{ "id":"cram_tee_to_md5", "from":"cram_tee:md5", "to":"create_cram_md5" },
{ "id":"cram_tee_to_crai", "from":"cram_tee:crai", "to":"cram_index" },
{ "id":"cram_tee_to_crai", "from":"cram_tee:crai", "to":"cram_index:cram" },
{ "id":"cidx_to_file", "from":"cram_index:idx", "to":"cram_index_file" },
{ "id":"cram_tee_to_bscs", "from":"cram_tee:seqchksum", "to":"cram_seqchksum" },
{ "id":"md5_to_postprocess", "from":"create_cram_md5", "to":"postprocess_md5" },
{ "id":"bmdmw_to_sts_F0x900", "from":"bmd_multiway:samtools_stats_F0x900", "to":"samtools_stats_F0x900" },
Expand Down

0 comments on commit 744ce57

Please sign in to comment.