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
9123df32
Commit
9123df32
authored
10 years ago
by
Wai Yi Leung
Browse files
Options
Downloads
Patches
Plain Diff
Make better use of the File object, let the file object concat the paths for me
parent
df55de18
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/kopisu/src/main/scala/nl/lumc/sasc/biopet/pipelines/kopisu/ConiferPipeline.scala
+8
-7
8 additions, 7 deletions
...l/lumc/sasc/biopet/pipelines/kopisu/ConiferPipeline.scala
with
8 additions
and
7 deletions
public/kopisu/src/main/scala/nl/lumc/sasc/biopet/pipelines/kopisu/ConiferPipeline.scala
+
8
−
7
View file @
9123df32
...
...
@@ -80,7 +80,7 @@ class ConiferPipeline(val root: Configurable) extends QScript with BiopetQScript
val
coniferRPKM
=
new
ConiferRPKM
(
this
)
coniferRPKM
.
bamFile
=
this
.
inputBam
.
getAbsoluteFile
coniferRPKM
.
probes
=
this
.
probeFile
coniferRPKM
.
output
=
new
File
(
RPKMdir
+
File
.
separator
+
input2RPKM
(
inputBam
))
coniferRPKM
.
output
=
new
File
(
RPKMdir
,
input2RPKM
(
inputBam
))
add
(
coniferRPKM
)
if
(!
RPKMonly
)
{
...
...
@@ -88,9 +88,10 @@ class ConiferPipeline(val root: Configurable) extends QScript with BiopetQScript
var
refRPKMlist
:
List
[
File
]
=
Nil
// Sync the .txt only, these files contain the RPKM Values
for
(
controlRPKMfile
<-
controlsDir
.
list
.
filter
(
_
.
toLowerCase
.
endsWith
(
".txt"
)))
{
val
target
=
new
File
(
RPKMdir
+
File
.
separator
+
controlRPKMfile
.
getName
)
val
source
=
new
File
(
controlsDir
+
File
.
separator
+
controlRPKMfile
)
if
(!
target
.
exists
())
{
val
target
=
new
File
(
RPKMdir
,
controlRPKMfile
)
val
source
=
new
File
(
controlsDir
,
controlRPKMfile
)
if
(!
target
.
exists
)
{
add
(
Ln
(
this
,
source
,
target
,
false
))
refRPKMlist
:+=
target
}
else
if
(!
target
.
equals
(
source
))
{
...
...
@@ -104,18 +105,18 @@ class ConiferPipeline(val root: Configurable) extends QScript with BiopetQScript
coniferAnalyze
.
deps
=
List
(
coniferRPKM
.
output
)
++
refRPKMlist
coniferAnalyze
.
probes
=
this
.
probeFile
coniferAnalyze
.
rpkmDir
=
RPKMdir
coniferAnalyze
.
output
=
new
File
(
sampleDir
+
File
.
separator
+
input2HDF5
(
inputBam
))
coniferAnalyze
.
output
=
new
File
(
sampleDir
,
input2HDF5
(
inputBam
))
add
(
coniferAnalyze
)
val
coniferCall
=
new
ConiferCall
(
this
)
coniferCall
.
input
=
coniferAnalyze
.
output
coniferCall
.
output
=
new
File
(
sampleDir
+
File
.
separator
+
"calls.txt"
)
coniferCall
.
output
=
new
File
(
sampleDir
,
"calls.txt"
)
add
(
coniferCall
)
summary
.
deps
=
List
(
coniferCall
.
output
)
summary
.
label
=
sampleLabel
summary
.
calls
=
coniferCall
.
output
summary
.
out
=
new
File
(
sampleDir
+
File
.
separator
+
input2Calls
(
inputBam
))
summary
.
out
=
new
File
(
sampleDir
,
input2Calls
(
inputBam
))
add
(
summary
)
}
...
...
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