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
695ef882
Commit
695ef882
authored
9 years ago
by
Sander van der Zeeuw
Browse files
Options
Downloads
Patches
Plain Diff
added bcftools_singlesample
parent
f525d0f4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/shiva/src/main/scala/nl/lumc/sasc/biopet/pipelines/shiva/ShivaVariantcallingTrait.scala
+45
-1
45 additions, 1 deletion
...asc/biopet/pipelines/shiva/ShivaVariantcallingTrait.scala
with
45 additions
and
1 deletion
public/shiva/src/main/scala/nl/lumc/sasc/biopet/pipelines/shiva/ShivaVariantcallingTrait.scala
+
45
−
1
View file @
695ef882
...
...
@@ -98,7 +98,7 @@ trait ShivaVariantcallingTrait extends SummaryQScript with SampleLibraryTag with
}
/** Will generate all available variantcallers */
protected
def
callersList
:
List
[
Variantcaller
]
=
List
(
new
Freebayes
,
new
RawVcf
,
new
Bcftools
)
protected
def
callersList
:
List
[
Variantcaller
]
=
List
(
new
Freebayes
,
new
RawVcf
,
new
Bcftools
,
new
BcftoolsSingleSample
)
/** General trait for a variantcaller mode */
trait
Variantcaller
{
...
...
@@ -182,6 +182,50 @@ trait ShivaVariantcallingTrait extends SummaryQScript with SampleLibraryTag with
}
}
/** default mode of bcftools */
class
BcftoolsSingleSample
extends
Variantcaller
{
val
name
=
"bcftools_singlesample"
protected
val
defaultPrio
=
8
/** Final output file of this mode */
def
outputFile
=
new
File
(
outputDir
,
namePrefix
+
".bcftools_singlesample.vcf.gz"
)
def
addJobs
()
{
val
sampleVcfs
=
for
(
inputBam
<-
inputBams
)
yield
{
val
mp
=
new
SamtoolsMpileup
(
qscript
)
mp
.
input
:+=
inputBam
mp
.
u
=
true
//TODO: proper piping should be implemented
mp
.
reference
=
referenceFasta
()
val
bt
=
new
BcftoolsCall
(
qscript
)
bt
.
O
=
"z"
bt
.
v
=
true
bt
.
c
=
true
val
sampleVcf
=
new
File
(
outputDir
,
inputBam
.
getName
+
".vcf.gz"
)
//TODO: add proper class with piping support, see also issue #114
add
(
new
CommandLineFunction
{
@Input
var
input
=
inputBam
@Output
var
output
=
sampleVcf
def
commandLine
:
String
=
mp
.
cmdPipe
+
" | "
+
bt
.
cmdPipeInput
+
" > "
+
output
+
" && tabix -p vcf "
+
output
})
sampleVcf
}
val
cv
=
new
CombineVariants
(
qscript
)
cv
.
inputFiles
=
sampleVcfs
cv
.
outputFile
=
outputFile
cv
.
setKey
=
"null"
add
(
cv
)
}
}
/** Makes a vcf file from a mpileup without statistics */
class
RawVcf
extends
Variantcaller
{
val
name
=
"raw"
...
...
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