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
c7b0c415
Commit
c7b0c415
authored
8 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Addec config option to disable merging of countfiles
parent
fd9b7bea
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
gentrap/src/main/scala/nl/lumc/sasc/biopet/pipelines/gentrap/measures/Measurement.scala
+16
-9
16 additions, 9 deletions
.../sasc/biopet/pipelines/gentrap/measures/Measurement.scala
with
16 additions
and
9 deletions
gentrap/src/main/scala/nl/lumc/sasc/biopet/pipelines/gentrap/measures/Measurement.scala
+
16
−
9
View file @
c7b0c415
...
...
@@ -29,6 +29,7 @@ trait Measurement extends SummaryQScript with Reference { qscript: QScript =>
/**
* Method to add a bamFile to the pipeline
*
* @param id Unique id used for this bam file, most likely to be a sampleName
* @param file Location of the bam file
*/
...
...
@@ -51,6 +52,8 @@ trait Measurement extends SummaryQScript with Reference { qscript: QScript =>
require
(
bamFiles
.
nonEmpty
)
}
lazy
val
mergeCountFiles
:
Boolean
=
config
(
"merge_count_files"
,
default
=
true
)
private
var
extraSummaryFiles
:
Map
[
String
,
File
]
=
Map
()
def
addMergeTableJob
(
countFiles
:
List
[
File
],
...
...
@@ -58,18 +61,22 @@ trait Measurement extends SummaryQScript with Reference { qscript: QScript =>
name
:
String
,
fileExtension
:
String
,
args
:
MergeArgs
=
mergeArgs
)
:
Unit
=
{
add
(
MergeTables
(
this
,
countFiles
,
outputFile
,
args
.
idCols
,
args
.
valCol
,
args
.
numHeaderLines
,
args
.
fallback
,
fileExtension
=
Some
(
fileExtension
)))
extraSummaryFiles
+=
s
"${name}_table"
->
outputFile
if
(
mergeCountFiles
)
{
add
(
MergeTables
(
this
,
countFiles
,
outputFile
,
args
.
idCols
,
args
.
valCol
,
args
.
numHeaderLines
,
args
.
fallback
,
fileExtension
=
Some
(
fileExtension
)))
extraSummaryFiles
+=
s
"${name}_table"
->
outputFile
}
}
def
addHeatmapJob
(
countTable
:
File
,
outputFile
:
File
,
name
:
String
,
countType
:
Option
[
String
]
=
None
)
:
Unit
=
{
val
job
=
new
PlotHeatmap
(
qscript
)
job
.
input
=
countTable
job
.
output
=
outputFile
job
.
countType
=
countType
add
(
job
)
extraSummaryFiles
+=
s
"${name}_heatmap"
->
outputFile
if
(
mergeCountFiles
)
{
val
job
=
new
PlotHeatmap
(
qscript
)
job
.
input
=
countTable
job
.
output
=
outputFile
job
.
countType
=
countType
add
(
job
)
extraSummaryFiles
+=
s
"${name}_heatmap"
->
outputFile
}
}
/** Must return a map with used settings for this pipeline */
...
...
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