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
fa32164f
Commit
fa32164f
authored
10 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Change some options
parent
fd8a4043
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/sage/src/main/scala/nl/lumc/sasc/biopet/pipelines/sage/Sage.scala
+9
-14
9 additions, 14 deletions
.../main/scala/nl/lumc/sasc/biopet/pipelines/sage/Sage.scala
with
9 additions
and
14 deletions
public/sage/src/main/scala/nl/lumc/sasc/biopet/pipelines/sage/Sage.scala
+
9
−
14
View file @
fa32164f
...
...
@@ -36,11 +36,8 @@ class Sage(val root: Configurable) extends QScript with MultiSampleQScript {
def
this
()
=
this
(
null
)
var
countBed
:
Option
[
File
]
=
config
(
"count_bed"
)
var
squishedCountBed
:
Option
[
File
]
=
config
(
"squished_count_bed"
)
var
squishedCountBed
:
File
=
_
var
transcriptome
:
Option
[
File
]
=
config
(
"transcriptome"
)
var
tagsLibrary
:
Option
[
File
]
=
config
(
"tags_library"
)
override
def
defaults
=
ConfigUtils
.
mergeMaps
(
Map
(
"bowtie"
->
Map
(
...
...
@@ -129,16 +126,14 @@ class Sage(val root: Configurable) extends QScript with MultiSampleQScript {
if
(!
outputDir
.
endsWith
(
"/"
))
outputDir
+=
"/"
if
(
transcriptome
.
isEmpty
&&
tagsLibrary
.
isEmpty
)
throw
new
IllegalStateException
(
"No transcriptome or taglib found"
)
if
(
countBed
.
isEmpty
&&
squishedCountBed
.
isEmpty
)
throw
new
IllegalStateException
(
"No bedfile supplied, please add a countBed
or squishedCountBed
"
)
if
(
countBed
.
isEmpty
)
throw
new
IllegalStateException
(
"No bedfile supplied, please add a countBed"
)
}
def
biopetScript
()
{
if
(
squishedCountBed
.
isEmpty
)
{
val
squishBed
=
SquishBed
(
this
,
countBed
.
get
,
outputDir
)
add
(
squishBed
)
squishedCountBed
=
Some
(
squishBed
.
output
)
}
val
squishBed
=
SquishBed
(
this
,
countBed
.
get
,
outputDir
)
add
(
squishBed
)
squishedCountBed
=
squishBed
.
output
if
(
tagsLibrary
.
isEmpty
)
{
val
cdl
=
new
SageCreateLibrary
(
this
)
...
...
@@ -158,19 +153,19 @@ class Sage(val root: Configurable) extends QScript with MultiSampleQScript {
}
def
addBedtoolsCounts
(
bamFile
:
File
,
outputPrefix
:
String
,
outputDir
:
String
)
{
val
bedtoolsSense
=
BedtoolsCoverage
(
this
,
bamFile
,
squishedCountBed
.
get
,
outputDir
+
outputPrefix
+
".genome.sense.coverage"
,
val
bedtoolsSense
=
BedtoolsCoverage
(
this
,
bamFile
,
squishedCountBed
,
outputDir
+
outputPrefix
+
".genome.sense.coverage"
,
depth
=
false
,
sameStrand
=
true
,
diffStrand
=
false
)
val
countSense
=
new
BedtoolsCoverageToCounts
(
this
)
countSense
.
input
=
bedtoolsSense
.
output
countSense
.
output
=
outputDir
+
outputPrefix
+
".genome.sense.counts"
val
bedtoolsAntisense
=
BedtoolsCoverage
(
this
,
bamFile
,
squishedCountBed
.
get
,
outputDir
+
outputPrefix
+
".genome.antisense.coverage"
,
val
bedtoolsAntisense
=
BedtoolsCoverage
(
this
,
bamFile
,
squishedCountBed
,
outputDir
+
outputPrefix
+
".genome.antisense.coverage"
,
depth
=
false
,
sameStrand
=
false
,
diffStrand
=
true
)
val
countAntisense
=
new
BedtoolsCoverageToCounts
(
this
)
countAntisense
.
input
=
bedtoolsAntisense
.
output
countAntisense
.
output
=
outputDir
+
outputPrefix
+
".genome.antisense.counts"
val
bedtools
=
BedtoolsCoverage
(
this
,
bamFile
,
squishedCountBed
.
get
,
outputDir
+
outputPrefix
+
".genome.coverage"
,
val
bedtools
=
BedtoolsCoverage
(
this
,
bamFile
,
squishedCountBed
,
outputDir
+
outputPrefix
+
".genome.coverage"
,
depth
=
false
,
sameStrand
=
false
,
diffStrand
=
false
)
val
count
=
new
BedtoolsCoverageToCounts
(
this
)
count
.
input
=
bedtools
.
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