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
a9f86490
Commit
a9f86490
authored
10 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Switch to new multisample part
parent
944b9af0
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/Kopisu.scala
+13
-15
13 additions, 15 deletions
...n/scala/nl/lumc/sasc/biopet/pipelines/kopisu/Kopisu.scala
with
13 additions
and
15 deletions
public/kopisu/src/main/scala/nl/lumc/sasc/biopet/pipelines/kopisu/Kopisu.scala
+
13
−
15
View file @
a9f86490
...
@@ -25,31 +25,29 @@ class Kopisu(val root: Configurable) extends QScript with MultiSampleQScript {
...
@@ -25,31 +25,29 @@ class Kopisu(val root: Configurable) extends QScript with MultiSampleQScript {
@Input
(
doc
=
"Input bamfile"
,
required
=
true
)
@Input
(
doc
=
"Input bamfile"
,
required
=
true
)
var
bamFile
:
File
=
config
(
"bam"
)
var
bamFile
:
File
=
config
(
"bam"
)
class
LibraryOutput
extends
AbstractLibraryOutput
{
}
class
SampleOutput
extends
AbstractSampleOutput
{
}
def
init
()
{
def
init
()
{
if
(!
outputDir
.
endsWith
(
"/"
))
outputDir
+=
"/"
if
(!
outputDir
.
endsWith
(
"/"
))
outputDir
+=
"/"
}
}
def
biopetScript
()
{
def
biopetScript
()
{
run
Sample
s
Jobs
this
.
addPer
SampleJobs
()
}
}
// Called for each sample
def
makeSample
(
id
:
String
)
=
new
Sample
(
id
)
def
runSingleSampleJobs
(
sampleConfig
:
Map
[
String
,
Any
])
:
SampleOutput
=
{
class
Sample
(
sampleId
:
String
)
extends
AbstractSample
(
sampleId
)
{
val
sampleOutput
=
new
SampleOutput
def
makeLibrary
(
id
:
String
)
=
new
Library
(
id
)
class
Library
(
libraryId
:
String
)
extends
AbstractLibrary
(
libraryId
)
{
def
addJobs
()
:
Unit
=
{
}
}
def
addJobs
()
:
Unit
=
{
return
sampleOutput
}
}
}
// Called for each run from a sample
def
addMultiSampleJobs
()
:
Unit
=
{
def
runSingleLibraryJobs
(
runConfig
:
Map
[
String
,
Any
],
sampleConfig
:
Map
[
String
,
Any
])
:
LibraryOutput
=
{
val
libraryOutput
=
new
LibraryOutput
return
libraryOutput
}
}
}
}
...
...
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