Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
54d818a2
Commit
54d818a2
authored
Nov 12, 2014
by
Peter van 't Hof
Browse files
Changed Queue wrapper
parent
48cfa704
Changes
1
Hide whitespace changes
Inline
Side-by-side
biopet-framework/src/main/scala/nl/lumc/sasc/biopet/tools/BastyGenerateFasta.scala
View file @
54d818a2
...
...
@@ -9,7 +9,7 @@ import java.io.PrintWriter
import
nl.lumc.sasc.biopet.core.BiopetJavaCommandLineFunction
import
nl.lumc.sasc.biopet.core.ToolCommand
import
nl.lumc.sasc.biopet.core.config.Configurable
import
org.broadinstitute.gatk.utils.commandline.
{
Input
,
Output
,
Argument
}
import
org.broadinstitute.gatk.utils.commandline.
{
Input
,
Output
}
import
scala.collection.JavaConversions._
import
nl.lumc.sasc.biopet.util.VcfUtils._
...
...
@@ -22,30 +22,39 @@ class BastyGenerateFasta(val root: Configurable) extends BiopetJavaCommandLineFu
@Input
(
doc
=
"Bam File"
,
required
=
false
)
var
bamFile
:
File
=
_
@Input
(
doc
=
"reference"
,
required
=
false
)
var
reference
:
File
=
config
(
"reference"
)
@Output
(
doc
=
"Output fasta, variants only"
,
required
=
false
)
var
outputVariants
:
File
=
_
@
Argumen
t
(
doc
=
"Output
interval list
"
,
required
=
false
)
var
snpsOnly
:
Boolean
=
config
(
"snps_only"
,
default
=
false
)
@
Outpu
t
(
doc
=
"Output
fasta, variants only
"
,
required
=
false
)
var
outputConsensus
:
File
=
_
@
Argumen
t
(
doc
=
"
Sample name
"
,
required
=
false
)
var
sampleName
:
String
=
_
@
Outpu
t
(
doc
=
"
Output fasta, variants only
"
,
required
=
false
)
var
outputConsensusVariants
:
File
=
_
@Argument
(
doc
=
"minAD"
,
required
=
false
)
var
snpsOnly
:
Boolean
=
config
(
"snps_only"
,
default
=
false
)
var
sampleName
:
String
=
_
var
minAD
:
Int
=
config
(
"min_ad"
,
default
=
8
)
var
minDepth
:
Int
=
config
(
"min_depth"
,
default
=
8
)
var
outputName
:
String
=
_
override
val
defaultVmem
=
"8G"
memoryLimit
=
Option
(
4.0
)
var
reference
=
false
override
def
commandLine
=
super
.
commandLine
+
optional
(
"--inputVcf"
,
inputVcf
)
+
optional
(
"--bamFile"
,
bamFile
)
+
optional
(
"--outputVariants"
,
outputVariants
)
+
optional
(
"--outputVariants"
,
outputConsensus
)
+
optional
(
"--outputVariants"
,
outputConsensusVariants
)
+
conditional
(
snpsOnly
,
"--snpsOnly"
)
+
optional
(
"--sampleName"
,
sampleName
)
+
required
(
"--outputName"
,
outputName
)
+
optional
(
"--minAD"
,
minAD
)
+
conditional
(
reference
,
"--reference"
)
optional
(
"--minDepth"
,
minDepth
)
+
optional
(
"--reference"
,
reference
)
}
object
BastyGenerateFasta
extends
ToolCommand
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment