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
6b190fbd
Commit
6b190fbd
authored
9 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Fix reference in varscan
parent
f4063de9
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/gentrap/src/main/scala/nl/lumc/sasc/biopet/pipelines/gentrap/extensions/CustomVarScan.scala
+5
-4
5 additions, 4 deletions
...c/biopet/pipelines/gentrap/extensions/CustomVarScan.scala
with
5 additions
and
4 deletions
public/gentrap/src/main/scala/nl/lumc/sasc/biopet/pipelines/gentrap/extensions/CustomVarScan.scala
+
5
−
4
View file @
6b190fbd
...
...
@@ -17,7 +17,7 @@ package nl.lumc.sasc.biopet.pipelines.gentrap.extensions
import
java.io.File
import
nl.lumc.sasc.biopet.core.BiopetCommandLineFunction
import
nl.lumc.sasc.biopet.core.
{
Reference
,
BiopetCommandLineFunction
}
import
nl.lumc.sasc.biopet.core.extensions.PythonCommandLineFunction
import
nl.lumc.sasc.biopet.utils.config.Configurable
import
nl.lumc.sasc.biopet.extensions.samtools.SamtoolsMpileup
...
...
@@ -28,7 +28,7 @@ import org.broadinstitute.gatk.utils.commandline.{ Input, Output }
/** Ad-hoc extension for VarScan variant calling that involves 6-command pipe */
// FIXME: generalize piping instead of building something by hand like this!
// Better to do everything quick and dirty here rather than something half-implemented with the objects
class
CustomVarScan
(
val
root
:
Configurable
)
extends
BiopetCommandLineFunction
{
wrapper
=>
class
CustomVarScan
(
val
root
:
Configurable
)
extends
BiopetCommandLineFunction
with
Reference
{
wrapper
=>
override
def
configName
=
"customvarscan"
...
...
@@ -36,7 +36,7 @@ class CustomVarScan(val root: Configurable) extends BiopetCommandLineFunction {
var
input
:
File
=
null
@Input
(
doc
=
"Reference FASTA file"
,
required
=
true
)
var
reference
:
File
=
config
(
"reference"
)
var
reference
:
File
=
null
@Output
(
doc
=
"Output VCF file"
,
required
=
true
)
var
output
:
File
=
null
...
...
@@ -49,7 +49,6 @@ class CustomVarScan(val root: Configurable) extends BiopetCommandLineFunction {
this
.
input
=
List
(
wrapper
.
input
)
override
def
configName
=
wrapper
.
configName
disableBaq
=
true
reference
=
config
(
"reference"
)
depth
=
Option
(
1000000
)
outputMappingQuality
=
true
}
...
...
@@ -92,7 +91,9 @@ class CustomVarScan(val root: Configurable) extends BiopetCommandLineFunction {
}
override
def
beforeGraph
()
:
Unit
=
{
super
.
beforeGraph
()
require
(
output
.
toString
.
endsWith
(
".gz"
),
"Output must have a .gz file extension"
)
if
(
reference
==
null
)
reference
=
referenceFasta
()
}
def
cmdLine
:
String
=
{
...
...
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