Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
ab7420cc
Commit
ab7420cc
authored
Apr 01, 2016
by
Peter van 't Hof
Browse files
Added reorder step to star
parent
b46b4c7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
public/biopet-extensions/src/main/scala/nl/lumc/sasc/biopet/extensions/Star.scala
View file @
ab7420cc
...
...
@@ -324,7 +324,7 @@ class Star(val root: Configurable) extends BiopetCommandLineFunction with Refere
optional
(
"--scoreDelOpen"
,
scoreDelOpen
)
// Break as workaround for a stackoverflow error for the compiler
cmd
+=
optional
(
"--scoreDelBase"
,
scoreDelBase
)
+
cmd
+=
optional
(
"--scoreDelBase"
,
scoreDelBase
)
+
optional
(
"--scoreInsOpen"
,
scoreInsOpen
)
+
optional
(
"--scoreInsBase"
,
scoreInsBase
)
+
optional
(
"--scoreStitchSJshift"
,
scoreStitchSJshift
)
+
...
...
public/mapping/src/main/scala/nl/lumc/sasc/biopet/pipelines/mapping/Mapping.scala
View file @
ab7420cc
...
...
@@ -475,13 +475,18 @@ class Mapping(val root: Configurable) extends QScript with SummaryQScript with S
val
zcatR2
=
if
(
paired
)
Some
(
extractIfNeeded
(
R2
.
get
,
output
.
getParentFile
))
else
None
val
starCommand
=
Star
(
this
,
zcatR1
.
_2
,
zcatR2
.
map
(
_
.
_2
),
outputDir
,
isIntermediate
=
true
)
val
ar
=
addAddOrReplaceReadGroups
(
starCommand
.
outputSam
,
output
)
val
reorderSam
=
new
ReorderSam
(
this
)
reorderSam
.
input
=
ar
.
_2
reorderSam
.
output
=
swapExt
(
ar
.
_2
.
getParentFile
,
output
,
".bam"
,
".reordered.bam"
)
val
pipe
=
new
BiopetFifoPipe
(
this
,
(
zcatR1
.
_1
::
(
if
(
paired
)
zcatR2
.
get
.
_1
else
None
)
::
Some
(
starCommand
)
::
Some
(
ar
.
_1
)
::
Nil
).
flatten
)
pipe
.
threadsCorrection
=
-
1
Some
(
starCommand
)
::
Some
(
ar
.
_1
)
::
Some
(
reorderSam
)
::
Nil
).
flatten
)
pipe
.
threadsCorrection
=
-
3
zcatR1
.
_1
.
foreach
(
x
=>
pipe
.
threadsCorrection
-=
1
)
zcatR2
.
foreach
(
_
.
_1
.
foreach
(
x
=>
pipe
.
threadsCorrection
-=
1
))
add
(
pipe
)
ar
.
_2
reorderSam
.
output
}
/** Adds Start 2 pass jobs */
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment