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
482ffc59
Commit
482ffc59
authored
10 years ago
by
Wai Yi Leung
Browse files
Options
Downloads
Patches
Plain Diff
Remove the indexing requirement from sambamba, since this does this on the fly since version v0.5.0
parent
bd2f00b0
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/yamsvp/src/main/scala/nl/lumc/sasc/biopet/pipelines/yamsvp/Yamsvp.scala
+13
-10
13 additions, 10 deletions
...n/scala/nl/lumc/sasc/biopet/pipelines/yamsvp/Yamsvp.scala
with
13 additions
and
10 deletions
public/yamsvp/src/main/scala/nl/lumc/sasc/biopet/pipelines/yamsvp/Yamsvp.scala
+
13
−
10
View file @
482ffc59
...
...
@@ -74,7 +74,13 @@ class Yamsvp(val root: Configurable) extends QScript with MultiSampleQScript {
}
val
bamFile
:
File
=
if
(
libraryBamfiles
.
size
==
1
)
libraryBamfiles
.
head
if
(
libraryBamfiles
.
size
==
1
)
{
// When the sample has only 1 run, make a link in the main alignment directory
val
alignmentlink
=
Ln
(
root
,
libraryBamfiles
.
head
,
alignmentDir
+
sampleID
+
".merged.bam"
,
true
)
add
(
alignmentlink
,
isIntermediate
=
true
)
alignmentlink
.
out
}
else
if
(
libraryBamfiles
.
size
>
1
)
{
val
mergeSamFiles
=
new
SambambaMerge
(
root
)
mergeSamFiles
.
input
=
libraryBamfiles
...
...
@@ -83,21 +89,18 @@ class Yamsvp(val root: Configurable) extends QScript with MultiSampleQScript {
mergeSamFiles
.
output
}
else
null
// TODO: Check whether sambamba reaches release version v0.5.0 which includes
// automatic indexing of the bam file.
val
bamMarkDup
=
SambambaMarkdup
(
root
,
bamFile
)
add
(
bamMarkDup
)
val
analysisBam
:
File
=
bamMarkDup
.
output
val
analysisBamIndex
=
SambambaIndex
(
root
,
analysisBam
)
add
(
analysisBamIndex
)
//
val analysisBam: File = bamMarkDup.output
//
val analysisBamIndex = SambambaIndex(root, analysisBam)
//
add(analysisBamIndex)
/// bamfile will be used as input for the SV callers. First run Clever
// val cleverVCF : File = sampleDir + "/" + sampleID + ".clever.vcf"
val
cleverDir
=
svcallingDir
+
sampleID
+
".clever/"
val
clever
=
CleverCaller
(
this
,
analysisBam
,
this
.
reference
,
svcallingDir
,
cleverDir
)
clever
.
deps
=
List
(
analysisBamIndex
.
output
)
val
clever
=
CleverCaller
(
this
,
bamMarkDup
.
output
,
this
.
reference
,
svcallingDir
,
cleverDir
)
sampleOutput
.
vcf
+=
(
"clever"
->
List
(
clever
.
outputvcf
))
add
(
clever
)
...
...
@@ -105,7 +108,7 @@ class Yamsvp(val root: Configurable) extends QScript with MultiSampleQScript {
add
(
clever_vcf
)
val
breakdancerDir
=
svcallingDir
+
sampleID
+
".breakdancer/"
val
breakdancer
=
Breakdancer
(
this
,
analysisBam
,
this
.
reference
,
breakdancerDir
)
val
breakdancer
=
Breakdancer
(
this
,
bamMarkDup
.
output
,
this
.
reference
,
breakdancerDir
)
sampleOutput
.
vcf
+=
(
"breakdancer"
->
List
(
breakdancer
.
outputvcf
))
addAll
(
breakdancer
.
functions
)
...
...
@@ -113,7 +116,7 @@ class Yamsvp(val root: Configurable) extends QScript with MultiSampleQScript {
add
(
bd_vcf
)
val
dellyDir
=
svcallingDir
+
sampleID
+
".delly/"
val
delly
=
Delly
(
this
,
analysisBam
,
dellyDir
)
val
delly
=
Delly
(
this
,
bamMarkDup
.
output
,
dellyDir
)
sampleOutput
.
vcf
+=
(
"delly"
->
List
(
delly
.
outputvcf
))
addAll
(
delly
.
functions
)
...
...
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