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

added rules for biallelic caller

parent 4b866162
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ import os.path
# * calculate a segmentation into potential SVs using Mosaicatcher
METHODS = ["simpleCalls"]
METHODS = ["simpleCalls", "biAllelic"]
rule all:
input:
......@@ -335,6 +335,15 @@ rule mosaiClassifier_calc_probs:
script:
"utils/mosaiClassifier.snakemake.R"
rule mosaiClassifier_make_call_biallelic:
input:
probs = "sv_probabilities/{sample}/{windows}.{bpdens}/probabilities.Rdata"
output:
"sv_calls/{sample}/{windows}.{bpdens}/biAllelic.txt"
script:
"utils/mosaiClassifier_call_biallelic.snakemake.R"
################################################################################
# Strand states & phasing #
......
library(data.table)
source("utils/mosaiClassifier/makeSVcalls.R")
probs = readRDS(snakemake@input[["probs"]])
llr = as.numeric(snakemake@params[["llr"]])
probs <- mosaiClassifierPostProcessing(probs)
probs <- forceBiallelic(probs)
tab <- makeSVCallSimple(probs)
write.table(tab, file = snakemake@output[[1]], sep = "\t", quote=F, row.names = F, col.names = 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