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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
biopet.biopet
Commits
2c82ed9b
Commit
2c82ed9b
authored
Feb 10, 2016
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Fix code warnings
parent
67e9c74a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/biopet-utils/src/main/scala/nl/lumc/sasc/biopet/utils/rscript/Rscript.scala
+4
-3
4 additions, 3 deletions
...ain/scala/nl/lumc/sasc/biopet/utils/rscript/Rscript.scala
with
4 additions
and
3 deletions
public/biopet-utils/src/main/scala/nl/lumc/sasc/biopet/utils/rscript/Rscript.scala
+
4
−
3
View file @
2c82ed9b
...
...
@@ -23,6 +23,8 @@ import nl.lumc.sasc.biopet.utils.config.Configurable
import
scala.sys.process.
{
Process
,
ProcessLogger
}
/**
* Trait for rscripts, can be used to execute rscripts locally
*
* Created by pjvanthof on 13/09/15.
*/
trait
Rscript
extends
Configurable
{
...
...
@@ -42,13 +44,12 @@ trait Rscript extends Configurable {
script
=
script
.
getAbsoluteFile
}
else
{
val
rScript
:
File
=
dir
match
{
case
Some
(
d
ir
)
=>
new
File
(
d
ir
,
script
.
getName
)
case
_
=>
{
case
Some
(
d
)
=>
new
File
(
d
,
script
.
getName
)
case
_
=>
val
file
=
File
.
createTempFile
(
script
.
getName
,
".R"
)
file
.
deleteOnExit
()
file
}
}
if
(!
rScript
.
getAbsoluteFile
.
getParentFile
.
exists
)
rScript
.
getParentFile
.
mkdirs
val
is
=
getClass
.
getResourceAsStream
(
script
.
getPath
)
...
...
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
sign in
to comment