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
c340b559
Commit
c340b559
authored
Jul 03, 2014
by
Peter van 't Hof
Browse files
changed version command to def
parent
07c486e9
Changes
4
Hide whitespace changes
Inline
Side-by-side
flexiprep/src/main/scala/nl/lumc/sasc/biopet/function/fastq/Cutadapt.scala
View file @
c340b559
...
...
@@ -18,6 +18,8 @@ class Cutadapt(val root:Configurable) extends BiopetCommandLineFunction {
var
fastq_output
:
File
=
_
executeble
=
config
(
"exe"
,
"cutadapt"
)
override
def
versionCommand
=
executeble
+
" --version"
override
val
versionRegex
=
"""(.*)"""
.
r
var
default_clip_mode
:
String
=
config
(
"default_clip_mode"
,
"3"
)
var
opt_adapter
:
Set
[
String
]
=
config
(
"adapter"
,
Nil
)
...
...
@@ -27,15 +29,9 @@ class Cutadapt(val root:Configurable) extends BiopetCommandLineFunction {
var
opt_discard
:
Boolean
=
config
(
"discard"
,
false
)
var
opt_minimum_length
:
String
=
config
(
"minimum_length"
,
1
)
var
opt_maximum_length
:
String
=
config
(
"maximum_length"
,
null
)
override
val
versionRegex
=
"""(.*)"""
.
r
override
def
afterGraph
()
{
versionCommand
=
executeble
+
" --version"
}
override
def
beforeCmd
()
{
this
.
getContamsFromFile
getContamsFromFile
}
def
cmdLine
=
{
...
...
flexiprep/src/main/scala/nl/lumc/sasc/biopet/function/fastq/Fastqc.scala
View file @
c340b559
...
...
@@ -31,9 +31,10 @@ class Fastqc(val root:Configurable) extends BiopetCommandLineFunction {
this
.
checkExecuteble
val
fastqcDir
=
executeble
.
substring
(
0
,
executeble
.
lastIndexOf
(
"/"
))
if
(
contaminants
==
null
)
contaminants
=
new
File
(
fastqcDir
+
"/Contaminants/contaminant_list.txt"
)
versionCommand
=
executeble
+
" --version"
}
override
def
versionCommand
=
executeble
+
" --version"
def
cmdLine
=
{
required
(
executeble
)
+
optional
(
"--java"
,
java_exe
)
+
...
...
flexiprep/src/main/scala/nl/lumc/sasc/biopet/function/fastq/Sickle.scala
View file @
c340b559
...
...
@@ -38,10 +38,10 @@ class Sickle(val root:Configurable) extends BiopetCommandLineFunction {
override
def
afterGraph
{
if
(
defaultQualityType
==
null
)
defaultQualityType
=
config
(
"defaultqualitytype"
,
"sanger"
)
if
(
qualityType
==
null
&&
defaultQualityType
!=
null
)
qualityType
=
defaultQualityType
versionCommand
=
executeble
+
" --version"
}
override
def
versionCommand
=
executeble
+
" --version"
override
def
beforeCmd
{
qualityType
=
getQualityTypeFromFile
}
...
...
mapping/src/main/scala/nl/lumc/sasc/biopet/function/aligners/Bwa.scala
View file @
c340b559
...
...
@@ -19,18 +19,17 @@ class Bwa(val root:Configurable) extends BiopetCommandLineFunction {
@Output
(
doc
=
"Output file SAM"
,
shortName
=
"output"
)
var
output
:
File
=
_
executeble
=
config
(
"exe"
,
"bwa"
)
var
RG
:
String
=
_
var
M
:
Boolean
=
config
(
"M"
,
true
)
executeble
=
config
(
"exe"
,
"bwa"
)
override
val
versionRegex
=
"""Version: (.*)"""
.
r
override
val
versionExitcode
=
List
(
0
,
1
)
override
val
defaultVmem
=
"6G"
override
val
defaultThreads
=
8
override
val
versionRegex
=
"""Version: (.*)"""
.
r
override
def
beforeCmd
()
{
versionCommand
=
executeble
}
override
def
versionCommand
=
executeble
def
cmdLine
=
{
required
(
executeble
)
+
...
...
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