Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
biopet.biopet
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
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
Mirrors
biopet.biopet
Commits
4459b837
Commit
4459b837
authored
9 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Adding gonl annotation step
parent
61926852
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/toucan/src/main/scala/nl/lumc/sasc/biopet/pipelines/toucan/Toucan.scala
+15
-2
15 additions, 2 deletions
...n/scala/nl/lumc/sasc/biopet/pipelines/toucan/Toucan.scala
with
15 additions
and
2 deletions
public/toucan/src/main/scala/nl/lumc/sasc/biopet/pipelines/toucan/Toucan.scala
+
15
−
2
View file @
4459b837
...
...
@@ -19,7 +19,7 @@ import nl.lumc.sasc.biopet.core.config.Configurable
import
nl.lumc.sasc.biopet.core.summary.SummaryQScript
import
nl.lumc.sasc.biopet.core.
{
BiopetQScript
,
PipelineCommand
,
Reference
}
import
nl.lumc.sasc.biopet.extensions.VariantEffectPredictor
import
nl.lumc.sasc.biopet.tools.VepNormalizer
import
nl.lumc.sasc.biopet.tools.
{
VcfWithVcf
,
VepNormalizer
}
import
nl.lumc.sasc.biopet.utils.ConfigUtils
import
org.broadinstitute.gatk.queue.QScript
...
...
@@ -53,8 +53,21 @@ class Toucan(val root: Configurable) extends QScript with BiopetQScript with Sum
val
normalizer
=
new
VepNormalizer
(
this
)
normalizer
.
inputVCF
=
vep
.
output
normalizer
.
outputV
CF
=
swapExt
(
vep
.
output
,
".vcf"
,
".normalized.vcf.gz"
)
normalizer
.
outputV
cf
=
swapExt
(
outputDir
,
vep
.
output
,
".vcf"
,
".normalized.vcf.gz"
)
add
(
normalizer
)
val
gonlVcfFile
:
Option
[
File
]
=
config
(
"gonl_vcf"
)
gonlVcfFile
match
{
case
Some
(
gonlVcfFile
)
=>
{
val
vcfWithVcf
=
new
VcfWithVcf
(
this
)
vcfWithVcf
.
input
=
normalizer
.
outputVcf
vcfWithVcf
.
secondaryVcf
=
gonlVcfFile
vcfWithVcf
.
output
=
swapExt
(
outputDir
,
normalizer
.
outputVcf
,
".vcf.gz"
,
".gonl.vcf.gz"
)
vcfWithVcf
.
fields
::=
(
"AF"
,
"AF_gonl"
,
None
)
add
(
vcfWithVcf
)
}
case
_
=>
normalizer
.
outputVcf
}
}
def
summaryFile
=
new
File
(
outputDir
,
"Toucan.summary.json"
)
...
...
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