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
328be9a6
Commit
328be9a6
authored
9 years ago
by
Sander van der Zeeuw
Browse files
Options
Downloads
Patches
Plain Diff
added fixmpileup script and removeEmptypile function
parent
43748908
No related branches found
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
public/shiva/src/main/scala/nl/lumc/sasc/biopet/pipelines/shiva/variantcallers/VarscanCnsSingleSample.scala
+19
-3
19 additions, 3 deletions
...pelines/shiva/variantcallers/VarscanCnsSingleSample.scala
with
19 additions
and
3 deletions
public/shiva/src/main/scala/nl/lumc/sasc/biopet/pipelines/shiva/variantcallers/VarscanCnsSingleSample.scala
+
19
−
3
View file @
328be9a6
...
...
@@ -2,6 +2,8 @@ package nl.lumc.sasc.biopet.pipelines.shiva.variantcallers
import
java.io.PrintWriter
import
nl.lumc.sasc.biopet.core.BiopetCommandLineFunction
import
nl.lumc.sasc.biopet.core.extensions.PythonCommandLineFunction
import
nl.lumc.sasc.biopet.extensions.gatk.CombineVariants
import
nl.lumc.sasc.biopet.extensions.
{
Ln
,
Tabix
,
Bgzip
}
import
nl.lumc.sasc.biopet.extensions.samtools.SamtoolsMpileup
...
...
@@ -20,12 +22,12 @@ class VarscanCnsSingleSample(val root: Configurable) extends Variantcaller {
"disable_baq"
->
true
,
"depth"
->
1000000
),
"mpileup2cns"
->
Map
(
"strand_filter"
->
0
)
"
varscan
mpileup2cns"
->
Map
(
"strand_filter"
->
0
)
)
override
def
fixedValues
=
Map
(
"samtoolsmpileup"
->
Map
(
"output_mapping_quality"
->
true
),
"mpileup2cns"
->
Map
(
"output_vcf"
->
1
)
"
varscan
mpileup2cns"
->
Map
(
"output_vcf"
->
1
)
)
def
biopetScript
:
Unit
=
{
...
...
@@ -42,10 +44,24 @@ class VarscanCnsSingleSample(val root: Configurable) extends Variantcaller {
writer
.
println
(
sample
)
writer
.
close
()
val
fixMpileup
=
new
PythonCommandLineFunction
{
setPythonScript
(
"fix_mpileup.py"
,
"/nl/lumc/sasc/biopet/pipelines/shiva/scripts/"
)
override
val
root
:
Configurable
=
this
.
root
override
def
configName
=
"fix_mpileup"
def
cmdLine
=
getPythonCommand
}
def
removeEmptyPile
()
=
new
BiopetCommandLineFunction
{
override
val
root
:
Configurable
=
this
.
root
override
def
configName
=
"remove_empty_pile"
executable
=
config
(
"exe"
,
default
=
"grep"
,
freeVar
=
false
)
override
def
cmdLine
:
String
=
required
(
executable
)
+
required
(
"-vP"
)
+
required
(
"""\t\t"""
)
}
val
varscan
=
new
VarscanMpileup2cns
(
this
)
varscan
.
vcfSampleList
=
Some
(
sampleVcf
)
add
(
mpileup
|
varscan
|
new
Bgzip
(
this
)
>
sampleVcf
)
add
(
mpileup
|
fixMpileup
|
removeEmptyPile
()
|
varscan
|
new
Bgzip
(
this
)
>
sampleVcf
)
add
(
Tabix
(
this
,
sampleVcf
))
sampleVcf
...
...
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