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
307c0b53
Commit
307c0b53
authored
10 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
- Fixed scattercounts
parent
da6a6ef2
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
gatk/src/main/java/nl/lumc/sasc/biopet/pipelines/gatk/Gatk.scala
+13
-13
13 additions, 13 deletions
...c/main/java/nl/lumc/sasc/biopet/pipelines/gatk/Gatk.scala
with
13 additions
and
13 deletions
gatk/src/main/java/nl/lumc/sasc/biopet/pipelines/gatk/Gatk.scala
+
13
−
13
View file @
307c0b53
...
...
@@ -55,8 +55,8 @@ class Gatk(private var globalConfig: Config) extends QScript {
//SampleWide jobs
if
(
gvcfFiles
.
size
>
0
)
{
val
genotypeGVCFs
=
new
GenotypeGVCFs
()
with
gatkArguments
{
this
.
variant
=
qscript
.
gvcfFiles
this
.
scatterCount
=
qscript
.
scatterCount
this
.
variant
=
gvcfFiles
this
.
scatterCount
=
scatterCount
this
.
out
=
new
File
(
outputDir
,
"final.vcf"
)
}
add
(
genotypeGVCFs
)
...
...
@@ -92,7 +92,7 @@ class Gatk(private var globalConfig: Config) extends QScript {
//indel recal
val
indelVariantRecalibrator
=
new
VariantRecalibrator
()
with
gatkArguments
{
this
.
input
+:=
snpApplyRecalibration
.
out
this
.
input
+:=
genotypeGVCFs
.
out
this
.
nt
=
4
this
.
memoryLimit
=
2
*
nt
this
.
recal_file
=
swapExt
(
genotypeGVCFs
.
out
,
".vcf"
,
".indel.recal"
)
...
...
@@ -105,10 +105,10 @@ class Gatk(private var globalConfig: Config) extends QScript {
add
(
indelVariantRecalibrator
)
val
indelApplyRecalibration
=
new
ApplyRecalibration
()
with
gatkArguments
{
this
.
input
+:=
snpApplyRecalibration
.
out
this
.
input
+:=
genotypeGVCFs
.
out
this
.
recal_file
=
indelVariantRecalibrator
.
recal_file
this
.
tranches_file
=
indelVariantRecalibrator
.
tranches_file
this
.
out
=
swapExt
(
genotypeGVCFs
.
out
,
".
recal.
vcf"
,
".indel.recal.vcf"
)
this
.
out
=
swapExt
(
genotypeGVCFs
.
out
,
".vcf"
,
".indel.recal.vcf"
)
this
.
ts_filter_level
=
99.0
this
.
mode
=
org
.
broadinstitute
.
sting
.
gatk
.
walkers
.
variantrecalibration
.
VariantRecalibratorArgumentCollection
.
Mode
.
INDEL
this
.
nt
=
3
...
...
@@ -142,10 +142,10 @@ class Gatk(private var globalConfig: Config) extends QScript {
// Variant calling
val
haplotypeCaller
=
new
HaplotypeCaller
with
gatkArguments
if
(
scatterCount
>
1
)
haplotypeCaller
.
scatterCount
=
qscript
.
scatterCount
*
15
if
(
scatterCount
>
1
)
haplotypeCaller
.
scatterCount
=
scatterCount
*
15
haplotypeCaller
.
input_file
=
outputFiles
(
"FinalBams"
)
haplotypeCaller
.
out
=
new
File
(
outputDir
,
sampleID
+
"/"
+
sampleID
+
".gvcf.vcf"
)
if
(
dbsnp
!=
null
)
haplotypeCaller
.
dbsnp
=
dbsnp
if
(
dbsnp
!=
null
)
haplotypeCaller
.
dbsnp
=
qscript
.
dbsnp
haplotypeCaller
.
nct
=
3
haplotypeCaller
.
memoryLimit
=
haplotypeCaller
.
nct
*
2
...
...
@@ -192,8 +192,8 @@ class Gatk(private var globalConfig: Config) extends QScript {
val
bwaCommand
=
new
Bwa
(
config
)
bwaCommand
.
R1
=
flexiprep
.
outputFiles
(
"output_R1"
)
if
(
paired
)
bwaCommand
.
R2
=
flexiprep
.
outputFiles
(
"output_R2"
)
bwaCommand
.
referenceFile
=
qscript
.
referenceFile
bwaCommand
.
nCoresRequest
=
8
//
bwaCommand.referenceFile = qscript.referenceFile
//
bwaCommand.nCoresRequest = 8
bwaCommand
.
jobResourceRequests
:+=
"h_vmem=6G"
bwaCommand
.
RG
=
"@RG\\t"
+
"ID:"
+
sampleID
+
"_"
+
runID
+
"\\t"
+
...
...
@@ -249,7 +249,7 @@ class Gatk(private var globalConfig: Config) extends QScript {
this
.
I
:+=
inputBam
this
.
o
=
swapExt
(
dir
,
inputBam
,
".bam"
,
".realign.intervals"
)
this
.
jobResourceRequests
:+=
"h_vmem=5G"
if
(
scatterCount
>
1
)
this
.
scatterCount
=
scatterCount
if
(
scatterCount
>
1
)
this
.
scatterCount
=
qscript
.
scatterCount
}
add
(
realignerTargetCreator
)
...
...
@@ -257,7 +257,7 @@ class Gatk(private var globalConfig: Config) extends QScript {
this
.
I
:+=
inputBam
this
.
targetIntervals
=
realignerTargetCreator
.
o
this
.
o
=
swapExt
(
dir
,
inputBam
,
".bam"
,
".realign.bam"
)
if
(
scatterCount
>
1
)
this
.
scatterCount
=
scatterCount
if
(
scatterCount
>
1
)
this
.
scatterCount
=
qscript
.
scatterCount
}
add
(
indelRealigner
)
...
...
@@ -269,7 +269,7 @@ class Gatk(private var globalConfig: Config) extends QScript {
this
.
I
:+=
inputBam
this
.
o
=
swapExt
(
dir
,
inputBam
,
".bam"
,
".baserecal"
)
this
.
knownSites
:+=
dbsnp
if
(
scatterCount
>
1
)
this
.
scatterCount
=
scatterCount
if
(
scatterCount
>
1
)
this
.
scatterCount
=
qscript
.
scatterCount
this
.
nct
=
2
}
add
(
baseRecalibrator
)
...
...
@@ -278,7 +278,7 @@ class Gatk(private var globalConfig: Config) extends QScript {
this
.
I
:+=
inputBam
this
.
o
=
swapExt
(
dir
,
inputBam
,
".bam"
,
".baserecal.bam"
)
this
.
BQSR
=
baseRecalibrator
.
o
if
(
scatterCount
>
1
)
this
.
scatterCount
=
scatterCount
if
(
scatterCount
>
1
)
this
.
scatterCount
=
qscript
.
scatterCount
}
return
printReads
.
o
...
...
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