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
ca772e5b
Commit
ca772e5b
authored
10 years ago
by
bow
Browse files
Options
Downloads
Patches
Plain Diff
Update base count aggregator for easier use in the pipeline
parent
ed444315
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/gentrap/src/main/scala/nl/lumc/sasc/biopet/pipelines/gentrap/scripts/AggrBaseCount.scala
+11
-16
11 additions, 16 deletions
...sasc/biopet/pipelines/gentrap/scripts/AggrBaseCount.scala
with
11 additions
and
16 deletions
public/gentrap/src/main/scala/nl/lumc/sasc/biopet/pipelines/gentrap/scripts/AggrBaseCount.scala
+
11
−
16
View file @
ca772e5b
...
...
@@ -17,31 +17,26 @@ import org.broadinstitute.gatk.utils.commandline.{ Input, Output }
*/
class
AggrBaseCount
(
val
root
:
Configurable
)
extends
RScriptCommandLineFunction
{
setRScript
(
"aggr_base_count.R"
)
setRScript
(
"aggr_base_count.R"
,
"/nl/lumc/sasc/biopet/pipelines/gentrap/scripts/"
)
@Input
(
doc
=
"Raw base count files"
,
required
=
true
)
var
input
RawCounts
:
List
[
File
]
=
List
.
empty
[
File
]
var
input
:
File
=
null
var
inputLabels
:
List
[
String
]
=
config
(
"input_labels"
)
@Output
(
doc
=
"Output count file"
,
required
=
false
)
var
output
:
File
=
null
@Output
(
doc
=
"Gene level count file"
,
required
=
false
)
var
outputGeneLevelCount
:
File
=
null
@Output
(
doc
=
"Exon level count file"
,
required
=
false
)
var
outputExonLevelCount
:
File
=
null
var
inputLabel
:
String
=
null
var
mode
:
String
=
null
override
def
beforeGraph
:
Unit
=
{
require
(
outputExonLevelCount
!=
null
||
outputGeneLevelCount
!=
null
,
"Either output exon and/or output gene must be set"
)
require
(
inputRawCounts
.
size
==
inputLabels
.
size
,
"Input files and input labels have the same length"
)
require
(
mode
==
"exon"
||
mode
==
"gene"
,
"Mode must be either exon or gene"
)
require
(
input
!=
null
,
"Input raw base count table must be defined"
)
}
def
cmdLine
=
{
RScriptCommand
+
required
(
"-I"
,
inputRawCounts
.
mkString
(
":"
))
+
required
(
"-N"
,
inputLabels
.
mkString
(
":"
))
+
optional
(
"-G"
,
outputGeneLevelCount
)
+
optional
(
"-E"
,
outputExonLevelCount
)
required
(
"-I"
,
input
)
+
required
(
"-N"
,
inputLabel
)
+
optional
(
if
(
mode
==
"gene"
)
"-G"
else
"-E"
,
output
)
}
}
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