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
77e40ed5
Commit
77e40ed5
authored
10 years ago
by
bow
Browse files
Options
Downloads
Patches
Plain Diff
Use MergeSamFiles for all merges
parent
6c7c75a7
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/Gentrap.scala
+5
-10
5 additions, 10 deletions
...scala/nl/lumc/sasc/biopet/pipelines/gentrap/Gentrap.scala
with
5 additions
and
10 deletions
public/gentrap/src/main/scala/nl/lumc/sasc/biopet/pipelines/gentrap/Gentrap.scala
+
5
−
10
View file @
77e40ed5
...
...
@@ -28,7 +28,7 @@ import nl.lumc.sasc.biopet.core._
import
nl.lumc.sasc.biopet.core.config._
import
nl.lumc.sasc.biopet.core.summary._
import
nl.lumc.sasc.biopet.extensions.
{
HtseqCount
,
Ln
}
import
nl.lumc.sasc.biopet.extensions.picard.
{
CollectRnaSeqMetrics
,
GatherBamFiles
,
MergeSamFiles
,
SortSam
}
import
nl.lumc.sasc.biopet.extensions.picard.
{
CollectRnaSeqMetrics
,
SortSam
,
MergeSamFiles
}
import
nl.lumc.sasc.biopet.extensions.samtools.SamtoolsView
import
nl.lumc.sasc.biopet.pipelines.mapping.Mapping
import
nl.lumc.sasc.biopet.pipelines.gentrap.extensions.
{
CustomVarScan
,
Pdflatex
,
RawBaseCounter
}
...
...
@@ -511,7 +511,7 @@ class Gentrap(val root: Configurable) extends QScript with MultiSampleQScript wi
case
Some
(
r2j
)
=>
List
(
f1Job
.
output
,
r2j
.
output
)
case
None
=>
List
(
f1Job
.
output
)
}
val
combineJob
=
makeCombineJob
(
perStrandFiles
,
createFile
(
".plus_strand.bam"
)
,
gather
=
true
)
val
combineJob
=
makeCombineJob
(
perStrandFiles
,
createFile
(
".plus_strand.bam"
))
Option
(
StrandSeparationJobSet
(
f1Job
,
r2Job
,
combineJob
))
...
...
@@ -552,7 +552,7 @@ class Gentrap(val root: Configurable) extends QScript with MultiSampleQScript wi
case
Some
(
r1j
)
=>
List
(
f2Job
.
output
,
r1j
.
output
)
case
None
=>
List
(
f2Job
.
output
)
}
val
combineJob
=
makeCombineJob
(
perStrandFiles
,
createFile
(
".minus_strand.bam"
)
,
gather
=
true
)
val
combineJob
=
makeCombineJob
(
perStrandFiles
,
createFile
(
".minus_strand.bam"
))
Option
(
StrandSeparationJobSet
(
f2Job
,
r1Job
,
combineJob
))
...
...
@@ -648,11 +648,11 @@ class Gentrap(val root: Configurable) extends QScript with MultiSampleQScript wi
job
}
/** Super type of Ln and MergeSamFile */
/** Super type of Ln and MergeSamFile
s
*/
private
type
CombineFileFunction
=
QFunction
{
def
output
:
File
}
/** Ln or MergeSamFile job, depending on how many inputs are supplied */
private
def
makeCombineJob
(
inFiles
:
List
[
File
],
outFile
:
File
,
gather
:
Boolean
=
false
,
private
def
makeCombineJob
(
inFiles
:
List
[
File
],
outFile
:
File
,
mergeSortOrder
:
String
=
"coordinate"
)
:
CombineFileFunction
=
{
require
(
inFiles
.
nonEmpty
,
"At least one input files for combine job"
)
if
(
inFiles
.
size
==
1
)
{
...
...
@@ -660,11 +660,6 @@ class Gentrap(val root: Configurable) extends QScript with MultiSampleQScript wi
job
.
input
=
inFiles
.
head
job
.
output
=
outFile
job
}
else
if
(
gather
)
{
val
job
=
new
GatherBamFiles
(
qscript
)
job
.
input
=
inFiles
job
.
output
=
outFile
job
}
else
{
val
job
=
new
MergeSamFiles
(
qscript
)
job
.
input
=
inFiles
...
...
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