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
cfeefcd4
Commit
cfeefcd4
authored
8 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Fix code warnings
parent
13825363
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/gwas-test/src/main/scala/nl/lumc/sasc/biopet/pipelines/gwastest/GwasTest.scala
+7
-7
7 additions, 7 deletions
...ala/nl/lumc/sasc/biopet/pipelines/gwastest/GwasTest.scala
with
7 additions
and
7 deletions
public/gwas-test/src/main/scala/nl/lumc/sasc/biopet/pipelines/gwastest/GwasTest.scala
+
7
−
7
View file @
cfeefcd4
...
...
@@ -31,7 +31,7 @@ class GwasTest(val root: Configurable) extends QScript with BiopetQScript with R
val
specsFile
:
Option
[
File
]
=
config
(
"imute_specs_file"
)
val
inputGens
:
List
[
GensInput
]
=
if
(
inputVcf
.
isDefined
)
List
[
GensInput
]()
else
config
(
"input_gens"
,
default
=
Nil
).
asList
.
map
(
x
=>
x
match
{
else
config
(
"input_gens"
,
default
=
Nil
).
asList
.
map
{
case
value
:
Map
[
String
,
Any
]
=>
GensInput
(
new
File
(
value
(
"genotypes"
).
toString
),
value
.
get
(
"info"
).
map
(
x
=>
new
File
(
x
.
toString
)),
...
...
@@ -41,7 +41,7 @@ class GwasTest(val root: Configurable) extends QScript with BiopetQScript with R
value
.
toMap
.
get
(
"info"
).
map
(
x
=>
new
File
(
x
.
toString
)),
value
.
get
(
"contig"
).
toString
)
case
_
=>
throw
new
IllegalArgumentException
}
)
++
(
specsFile
match
{
}
++
(
specsFile
match
{
case
Some
(
file
)
=>
imputeSpecsToGensInput
(
file
,
config
(
"validate_specs"
,
default
=
true
))
case
_
=>
Nil
})
...
...
@@ -73,7 +73,7 @@ class GwasTest(val root: Configurable) extends QScript with BiopetQScript with R
val
cvChr
=
new
CatVariants
(
this
)
cvChr
.
assumeSorted
=
true
//cvChr.isIntermediate = true
cvChr
.
outputFile
=
new
File
(
outputDirGens
,
s
"$
{
contig
}
.merge.gens.vcf.gz"
)
cvChr
.
outputFile
=
new
File
(
outputDirGens
,
s
"$contig.merge.gens.vcf.gz"
)
gens
.
zipWithIndex
.
foreach
{
gen
=>
val
gensToVcf
=
new
GensToVcf
(
this
)
gensToVcf
.
inputGens
=
gen
.
_1
.
genotypes
...
...
@@ -101,13 +101,13 @@ class GwasTest(val root: Configurable) extends QScript with BiopetQScript with R
val
regionDir
=
new
File
(
outputDir
,
"snptest"
+
File
.
separator
+
region
.
chr
)
val
bedDir
=
new
File
(
outputDir
,
".queue"
+
File
.
separator
+
"regions"
+
File
.
separator
+
region
.
chr
)
bedDir
.
mkdirs
()
val
bedFile
=
new
File
(
bedDir
,
s
"$
{
name
}
.bed"
)
val
bedFile
=
new
File
(
bedDir
,
s
"$name.bed"
)
BedRecordList
.
fromList
(
List
(
region
)).
writeToFile
(
bedFile
)
bedFile
.
deleteOnExit
()
val
sv
=
new
SelectVariants
(
this
)
sv
.
inputFiles
:+=
chrVcfFiles
.
getOrElse
(
region
.
chr
,
vcfFile
)
sv
.
outputFile
=
new
File
(
regionDir
,
s
"$
{
name
}
.vcf.gz"
)
sv
.
outputFile
=
new
File
(
regionDir
,
s
"$name.vcf.gz"
)
sv
.
intervals
:+=
bedFile
sv
.
isIntermediate
=
true
add
(
sv
)
...
...
@@ -115,12 +115,12 @@ class GwasTest(val root: Configurable) extends QScript with BiopetQScript with R
val
snptest
=
new
Snptest
(
this
)
snptest
.
inputGenotypes
:+=
sv
.
outputFile
snptest
.
inputSampleFiles
:+=
phenotypeFile
snptest
.
outputFile
=
Some
(
new
File
(
regionDir
,
s
"$
{
name
}
.snptest"
))
snptest
.
outputFile
=
Some
(
new
File
(
regionDir
,
s
"$name.snptest"
))
add
(
snptest
)
val
snptestToVcf
=
new
SnptestToVcf
(
this
)
snptestToVcf
.
inputInfo
=
snptest
.
outputFile
.
get
snptestToVcf
.
outputVcf
=
new
File
(
regionDir
,
s
"$
{
name
}
.snptest.vcf.gz"
)
snptestToVcf
.
outputVcf
=
new
File
(
regionDir
,
s
"$name.snptest.vcf.gz"
)
snptestToVcf
.
contig
=
region
.
chr
add
(
snptestToVcf
)
...
...
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