Skip to content
Snippets Groups Projects
Commit 84406af6 authored by Sascha Meiers's avatar Sascha Meiers
Browse files

Added rule for ploidy estimation

parent 5b8c6150
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,8 @@ rule all:
chrom = config["chromosomes"],
window = [50000, 100000],
bpdens = ["few","medium","many"],
method = METHODS)
method = METHODS),
expand("ploidy/{sample}/ploidy.{chrom}.txt", sample = SAMPLE, chrom = config["chromosomes"])
################################################################################
......@@ -169,6 +170,26 @@ rule link_to_simulated_strand_states:
ruleorder: link_to_simulated_counts > mosaic_count_fixed
ruleorder: link_to_simulated_strand_states > convert_strandphaser_output
################################################################################
# Ploidy estimation #
################################################################################
rule estimate_ploidy:
input:
"counts/{sample}/100000_fixed.txt.gz"
output:
"ploidy/{sample}/ploidy.{chrom}.txt"
log:
"log/estimate_ploidy/{sample}/{chrom}.log"
shell:
"""
python utils/ploidy-estimator.py --chromosome {wildcards.chrom} {input} > {output} 2> {log}
"""
################################################################################
# Plots #
################################################################################
......
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