Skip to content
Snippets Groups Projects
Commit 0f3cb30d authored by Cats's avatar Cats
Browse files

Add GT to gridss results in AnnotateSvTypes

parent 3af704d6
No related branches found
No related tags found
No related merge requests found
......@@ -119,6 +119,8 @@ task AnnotateSvTypes {
gr <- breakpointRanges(vcf)
svtype <- simpleEventType(gr)
info(vcf[gr$sourceId])$SVTYPE <- svtype
# GRIDSS doesn't supply a GT, so we estimate GT based on AF (assuming CN of 2, might be inaccurate)
geno(vcf)$GT <- ifelse(geno(vcf)$AF > 0.75, "1/1", ifelse(geno(vcf)$AF < 0.25, "0/0", "0/1"))
writeVcf(vcf, out_path, index=~{index})
EOF
>>>
......
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