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
3ce0cd9f
Commit
3ce0cd9f
authored
8 years ago
by
Sander Bollen
Browse files
Options
Downloads
Patches
Plain Diff
autostyle
parent
8e13d8ac
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
biopet-extensions/src/main/scala/nl/lumc/sasc/biopet/extensions/Cnmops.scala
+8
-8
8 additions, 8 deletions
...rc/main/scala/nl/lumc/sasc/biopet/extensions/Cnmops.scala
with
8 additions
and
8 deletions
biopet-extensions/src/main/scala/nl/lumc/sasc/biopet/extensions/Cnmops.scala
+
8
−
8
View file @
3ce0cd9f
...
...
@@ -33,7 +33,7 @@ class Cnmops(val root: Configurable) extends RscriptCommandLineFunction with Ver
protected
var
script
:
File
=
new
File
(
"/nl/lumc/sasc/biopet/extensions/cnmops.R"
)
def
versionCommand
=
super
.
cmdLine
+
"--version"
def
versionRegex
=
"\\d+\\.\\d+\\.\\d+"
.
r
def
versionRegex
=
"\\d+\\.\\d+\\.\\d+"
.
r
private
def
stringToInt
(
s
:
String
)
:
Option
[
Int
]
=
{
try
{
...
...
@@ -44,10 +44,10 @@ class Cnmops(val root: Configurable) extends RscriptCommandLineFunction with Ver
}
/**
* Check whether version of cn mops is at least 1.18.0
*
* @return
*/
* Check whether version of cn mops is at least 1.18.0
*
* @return
*/
def
versionCheck
:
Boolean
=
{
getVersion
match
{
case
Some
(
version
)
=>
{
...
...
@@ -79,7 +79,7 @@ class Cnmops(val root: Configurable) extends RscriptCommandLineFunction with Ver
lazy
val
outputCnv
:
File
=
{
outputDir
match
{
case
Some
(
dir
)
if
dir
.
exists
=>
new
File
(
dir
,
"cnv.txt"
)
case
_
=>
throw
new
IllegalArgumentException
(
"Unexpected error when trying to set cn.MOPS CNV output"
)
case
_
=>
throw
new
IllegalArgumentException
(
"Unexpected error when trying to set cn.MOPS CNV output"
)
}
}
...
...
@@ -87,7 +87,7 @@ class Cnmops(val root: Configurable) extends RscriptCommandLineFunction with Ver
lazy
val
outputCnr
:
File
=
{
outputDir
match
{
case
Some
(
dir
)
if
dir
.
exists
=>
new
File
(
dir
,
"cnr.txt"
)
case
_
=>
throw
new
IllegalArgumentException
(
"Unexpected error when trying to set cn.MOPS CNR output"
)
case
_
=>
throw
new
IllegalArgumentException
(
"Unexpected error when trying to set cn.MOPS CNR output"
)
}
}
...
...
@@ -95,7 +95,7 @@ class Cnmops(val root: Configurable) extends RscriptCommandLineFunction with Ver
lazy
val
rawOutput
:
File
=
{
outputDir
match
{
case
Some
(
dir
)
if
dir
.
exists
=>
new
File
(
dir
,
"rawoutput.txt"
)
case
_
=>
throw
new
IllegalArgumentException
(
"Unexpected error when trying to set cn.MOPS raw output"
)
case
_
=>
throw
new
IllegalArgumentException
(
"Unexpected error when trying to set cn.MOPS raw output"
)
}
}
...
...
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