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
211b5e18
Commit
211b5e18
authored
9 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Added merge output of qiimeClosed
parent
233d9a9b
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/gears/src/main/scala/nl/lumc/sasc/biopet/pipelines/gears/Gears.scala
+18
-9
18 additions, 9 deletions
...ain/scala/nl/lumc/sasc/biopet/pipelines/gears/Gears.scala
with
18 additions
and
9 deletions
public/gears/src/main/scala/nl/lumc/sasc/biopet/pipelines/gears/Gears.scala
+
18
−
9
View file @
211b5e18
...
@@ -36,6 +36,16 @@ class Gears(val root: Configurable) extends QScript with MultiSampleQScript { qs
...
@@ -36,6 +36,16 @@ class Gears(val root: Configurable) extends QScript with MultiSampleQScript { qs
addSummaryJobs
()
addSummaryJobs
()
}
}
def
qiimeClosedDir
:
Option
[
File
]
=
{
if
(
samples
.
values
.
flatMap
(
_
.
gs
.
qiimeClosed
).
nonEmpty
)
{
Some
(
new
File
(
outputDir
,
"qiime_closed_reference"
))
}
else
None
}
def
qiimeClosedOtuTable
:
Option
[
File
]
=
qiimeClosedDir
.
map
(
new
File
(
_
,
"otu_table.biom"
))
def
qiimeClosedOtuMap
:
Option
[
File
]
=
qiimeClosedDir
.
map
(
new
File
(
_
,
"otu_map.txt"
))
/**
/**
* Method where the multisample jobs should be added, this will be executed only when running the -sample argument is not given.
* Method where the multisample jobs should be added, this will be executed only when running the -sample argument is not given.
*/
*/
...
@@ -45,24 +55,20 @@ class Gears(val root: Configurable) extends QScript with MultiSampleQScript { qs
...
@@ -45,24 +55,20 @@ class Gears(val root: Configurable) extends QScript with MultiSampleQScript { qs
val
closedOtuMaps
=
gss
.
map
(
_
.
otuMap
)
val
closedOtuMaps
=
gss
.
map
(
_
.
otuMap
)
require
(
closedOtuTables
.
size
==
closedOtuMaps
.
size
)
require
(
closedOtuTables
.
size
==
closedOtuMaps
.
size
)
if
(
closedOtuTables
.
nonEmpty
)
{
if
(
closedOtuTables
.
nonEmpty
)
{
val
closedDir
=
new
File
(
outputDir
,
"qiime_closed_reference"
)
val
closedOtuTable
=
new
File
(
closedDir
,
"otu_table.biom"
)
val
closedOtuMap
=
new
File
(
closedDir
,
"otu_map.txt"
)
if
(
closedOtuTables
.
size
>
1
)
{
if
(
closedOtuTables
.
size
>
1
)
{
val
mergeTables
=
new
MergeOtuTables
(
qscript
)
val
mergeTables
=
new
MergeOtuTables
(
qscript
)
mergeTables
.
input
=
closedOtuTables
mergeTables
.
input
=
closedOtuTables
mergeTables
.
outputFile
=
c
losedOtuTable
mergeTables
.
outputFile
=
qiimeC
losedOtuTable
.
get
add
(
mergeTables
)
add
(
mergeTables
)
val
mergeMaps
=
new
MergeOtuMaps
(
qscript
)
val
mergeMaps
=
new
MergeOtuMaps
(
qscript
)
mergeMaps
.
input
=
closedOtuMaps
mergeMaps
.
input
=
closedOtuMaps
mergeMaps
.
output
=
c
losedOtuMap
mergeMaps
.
output
=
qiimeC
losedOtuMap
.
get
add
(
mergeMaps
)
add
(
mergeMaps
)
}
else
{
}
else
{
add
(
Ln
(
qscript
,
closedOtuMaps
.
head
,
c
losedOtuMap
))
add
(
Ln
(
qscript
,
closedOtuMaps
.
head
,
qiimeC
losedOtuMap
.
get
))
add
(
Ln
(
qscript
,
closedOtuTables
.
head
,
c
losedOtuTable
))
add
(
Ln
(
qscript
,
closedOtuTables
.
head
,
qiimeC
losedOtuTable
.
get
))
}
}
//TODO: Plots
//TODO: Plots
...
@@ -149,7 +155,10 @@ class Gears(val root: Configurable) extends QScript with MultiSampleQScript { qs
...
@@ -149,7 +155,10 @@ class Gears(val root: Configurable) extends QScript with MultiSampleQScript { qs
def
summarySettings
:
Map
[
String
,
Any
]
=
Map
()
def
summarySettings
:
Map
[
String
,
Any
]
=
Map
()
/** File to put in the summary for thie pipeline */
/** File to put in the summary for thie pipeline */
def
summaryFiles
:
Map
[
String
,
File
]
=
Map
()
def
summaryFiles
:
Map
[
String
,
File
]
=
(
qiimeClosedOtuTable
.
map
(
"qiime_closed_otu_table"
->
_
)
++
qiimeClosedOtuMap
.
map
(
"qiime_closed_otu_map"
->
_
)
).
toMap
}
}
object
Gears
extends
PipelineCommand
object
Gears
extends
PipelineCommand
\ No newline at end of file
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