Skip to content
Snippets Groups Projects
Commit 8b508da1 authored by Tobias Marschall's avatar Tobias Marschall
Browse files

Additionally run postprocessing separately (creating a directory "postprocessing")

parent 421ea9f0
No related branches found
No related tags found
No related merge requests found
......@@ -105,6 +105,11 @@ rule all:
window = [100000],
suffix = ["fixed", "fixed_norm"]),
expand("stats-merged/{sample}/stats.tsv", sample = SAMPLES),
expand("postprocessing/merge/{sample}/{window}_fixed_norm.{bpdens}/{method}.txt",
sample = SAMPLES,
window = [100000],
bpdens = BPDENS,
method = list(set(m.replace('_filterTRUE','').replace('_filterFALSE','') for m in METHODS))),
################################################################################
......@@ -628,6 +633,23 @@ rule call_complex_regions:
"utils/call-complex-regions.py --merge_distance 5000000 --ignore_haplotypes --min_cell_count 2 {input.calls} > {output.complex} 2>{log}"
rule postprocessing_filter:
input:
calls = "sv_calls/{sample}/{window}_fixed_norm.{bpdens}/simpleCalls_llr{llr}_poppriors{pop_priors}_haplotags{use_haplotags}_gtcutoff{gtcutoff}_regfactor{regfactor}_filterFALSE.txt"
output:
calls = "postprocessing/filter/{sample}/{window}_fixed_norm.{bpdens,selected_j[0-9\\.]+_s[0-9\\.]+}/simpleCalls_llr{llr}_poppriors{pop_priors,(TRUE|FALSE)}_haplotags{use_haplotags,(TRUE|FALSE)}_gtcutoff{gtcutoff,[0-9\\.]+}_regfactor{regfactor,[0-9]+}.txt"
shell:
'utils/filter_MosaiCatcher_calls.pl {input.calls} > {output.calls}'
rule postprocessing_merge:
input:
calls = "postprocessing/filter/{sample}/{window}_fixed_norm.{bpdens,selected_j[0-9\\.]+_s[0-9\\.]+}/simpleCalls_llr{llr}_poppriors{pop_priors,(TRUE|FALSE)}_haplotags{use_haplotags,(TRUE|FALSE)}_gtcutoff{gtcutoff,[0-9\\.]+}_regfactor{regfactor,[0-9]+}.txt"
output:
calls = "postprocessing/merge/{sample}/{window}_fixed_norm.{bpdens,selected_j[0-9\\.]+_s[0-9\\.]+}/simpleCalls_llr{llr}_poppriors{pop_priors,(TRUE|FALSE)}_haplotags{use_haplotags,(TRUE|FALSE)}_gtcutoff{gtcutoff,[0-9\\.]+}_regfactor{regfactor,[0-9]+}.txt"
shell:
'utils/group_nearby_calls_of_same_AF.pl {input.calls} > {output.calls}'
################################################################################
# Strand states & phasing #
################################################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment