-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switched to use samtools merge and samtools markdup (#281)
* Switched to use samtools merge and samtools markdup * -c option added to samtools markdup to avoid some optical duplicate count errors --------- Co-authored-by: ces <[email protected]>
- Loading branch information
Showing
3 changed files
with
137 additions
and
12 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
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,20 @@ | ||
{ | ||
"version":"2.0", | ||
"description":"steps in the alignment pipeline to post-process bam files produced by the AlignmentFilter", | ||
"subgraph_io":{ | ||
"ports":{ | ||
"inputs":{ "_stdin_":"bammarkduplicates" }, | ||
"outputs":{ "_stdout_":"bammarkduplicates" } | ||
} | ||
}, | ||
"nodes":[ | ||
{ | ||
"id":"bammarkduplicates", | ||
"comment":"default tool bamstreamingmarkduplicates must be from Biobambam >= 0.0.174", | ||
"type":"EXEC", | ||
"use_STDIN": true, | ||
"use_STDOUT": true, | ||
"cmd": [ {"subst":"bmd_cmd"}, "level=0", "verbose=0", {"subst":"bmd_tmpfile_flag"}, {"subst":"bmd_metrics_file_flag"}, {"subst":"bmd_resetdupflag"} ] | ||
} | ||
] | ||
} |
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,74 @@ | ||
{ | ||
"version":"2.0", | ||
"description":"steps in the alignment pipeline to post-process bam files produced by the AlignmentFilter", | ||
"subgraph_io":{ | ||
"ports":{ | ||
"inputs":{ "_stdin_":"collate" }, | ||
"outputs":{ "_stdout_":"markdup" } | ||
} | ||
}, | ||
"nodes":[ | ||
{ | ||
"id":"collate", | ||
"type":"EXEC", | ||
"use_STDIN": true, | ||
"use_STDOUT": true, | ||
"cmd": [ | ||
{"subst":"samtools_executable", "required":true, "ifnull":"samtools"}, "collate", "-l", "0", "--threads", "4","-O","-" | ||
] | ||
}, | ||
{ | ||
"id":"fixmate", | ||
"type":"EXEC", | ||
"use_STDIN": true, | ||
"use_STDOUT": true, | ||
"cmd": [ | ||
{"subst":"samtools_executable", "required":true, "ifnull":"samtools"}, "fixmate", | ||
"--threads", {"subst":"fixmate_threads","required":true,"ifnull":4}, | ||
{"select":"fixmate_add_mate_score", "required":true, "select_range":[1], "default":"on", "cases":{"on":"-m","off":[]}}, | ||
{"subst":"fixmate_extra_flags", "required":false}, | ||
"-", "-" | ||
] | ||
}, | ||
{ | ||
"id":"coord_sort", | ||
"type":"EXEC", | ||
"use_STDIN": true, | ||
"use_STDOUT": true, | ||
"cmd": [ | ||
{"subst":"samtools_executable", "required":true, "ifnull":"samtools"}, "sort", | ||
"-l", {"subst":"coord_sort_compression","required":true,"ifnull":["0"]}, | ||
{"subst":"coord_sort_mpt_flag","ifnull":{"subst_constructor":{"vals":["-m", {"subst":"coord_sort_mem_per_thread","required":false}]}}}, | ||
"--threads", {"subst":"coord_sort_threads","required":true,"ifnull":4}, | ||
{"subst":"coord_sort_extra_flags", "required":false}, | ||
"-" | ||
] | ||
}, | ||
{ | ||
"id":"markdup", | ||
"type":"EXEC", | ||
"use_STDIN": true, | ||
"use_STDOUT": true, | ||
"comment":"add -T <temp_prefix> after initial tests", | ||
"cmd": [ | ||
{"subst":"samtools_executable", "required":true, "ifnull":"samtools"}, "markdup", | ||
"--threads", {"subst":"markdup_threads","required":true,"ifnull":4}, | ||
"-s", | ||
"-c", | ||
"-f", {"subst":"stmd_metrics_file","required":true}, | ||
{"select":"stmd_mark_supps", "required":true, "select_range":[1], "default":"on","cases":{"on":"-S","off":[]}}, | ||
["-d", {"subst":"markdup_optical_distance_value","required":false,"ifnull":2500}], | ||
{"subst":"stmd_relaxed_flag","required":false, "ifnull":["--mode", {"subst":"stmd_dup_pos_mode","required":false,"ifnull":"s"}]}, | ||
{"select":"stmd_label_dups", "required":true, "select_range":[1], "default":"off", "cases":{"on":"-t","off":[]}}, | ||
{"select":"stmd_clear_previous", "required":true, "select_range":[1], "default":"off","cases":{"on":"-c","off":[]}}, | ||
{"subst":"stmd_extra_flags", "required":false}, | ||
"-", "-" | ||
] | ||
} | ||
], | ||
"edges":[ | ||
{ "id":"collate_to_fixmate", "from":"collate", "to":"fixmate" }, | ||
{ "id":"fixmate_to_coordsort", "from":"fixmate", "to":"coord_sort" }, | ||
{ "id":"coordsort_tomarkdup", "from":"coord_sort", "to":"markdup" } | ||
] | ||
} |