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

Enable new segmentation

parent f07cf7eb
No related branches found
No related tags found
No related merge requests found
......@@ -326,6 +326,7 @@ rule segmentation:
shell:
"""
{params.mc_command} segment \
--remove-none \
-m 0.33 \
-M 50000000 \
-o {output} \
......
......@@ -5,6 +5,6 @@ qu
d = fread(snakemake@input[[1]])
d
# type = 1 is important to get discrete values!
d = d[, .SD[k == quantile(1:max(k), qu, type = 1)], by=chrom][,.(k, chrom, bps = breakpoint)]
d = d[, .SD[k == quantile(1:max(k), qu, type = 1)], by=chrom][,.(k, chrom, bps)]
d
write.table(d, file = snakemake@output[[1]], row.names=F, quote=F, sep="\t")
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