Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tasks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
biowdl
tasks
Commits
daf19317
Commit
daf19317
authored
2 years ago
by
Cats
Browse files
Options
Downloads
Patches
Plain Diff
remove second breakends in gridss AnnotateSvTypes script
parent
a980f109
Branches
BIOWDL-602
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gridss.wdl
+8
-3
8 additions, 3 deletions
gridss.wdl
with
8 additions
and
3 deletions
gridss.wdl
+
8
−
3
View file @
daf19317
...
...
@@ -119,9 +119,14 @@ 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})
# GRIDSS doesn't supply a GT, simply set it to 0/1
geno(vcf)$GT <- "0/1"
# Select only one breakend per event (also removes single breakends):
# sourceId ends with o or h for paired breakends, the first in the pair
# end with o the second with h. Single breakend end with b, these will
# also be removed since we can't determine the SVTYPE.
gr2 <- gr[grepl(".*o$", gr$sourceId)]
writeVcf(vcf[gr2$sourceId], out_path, index=~{index})
EOF
>>>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment