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
86ad2593
Commit
86ad2593
authored
9 years ago
by
Sander van der Zeeuw
Browse files
Options
Downloads
Patches
Plain Diff
add varscan test to shiva variantcalling test
parent
ca40d875
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/test/scala/nl/lumc/sasc/biopet/pipelines/shiva/ShivaVariantcallingTest.scala
+10
-7
10 additions, 7 deletions
...sasc/biopet/pipelines/shiva/ShivaVariantcallingTest.scala
with
10 additions
and
7 deletions
public/shiva/src/test/scala/nl/lumc/sasc/biopet/pipelines/shiva/ShivaVariantcallingTest.scala
+
10
−
7
View file @
86ad2593
...
...
@@ -53,28 +53,31 @@ class ShivaVariantcallingTest extends TestNGSuite with Matchers {
bams
<-
0
to
3
;
raw
<-
bool
;
bcftools
<-
bool
;
bcftools_singlesample
<-
bool
;
freebayes
<-
bool
)
yield
Array
(
bams
,
raw
,
bcftools
,
bcftools_singlesample
,
freebayes
)).
toArray
bcftoolsSinglesample
<-
bool
;
freebayes
<-
bool
;
varscanCnsSinglesample
<-
bool
)
yield
Array
(
bams
,
raw
,
bcftools
,
bcftoolsSinglesample
,
freebayes
,
varscanCnsSinglesample
)).
toArray
}
@Test
(
dataProvider
=
"shivaVariantcallingOptions"
)
def
testShivaVariantcalling
(
bams
:
Int
,
raw
:
Boolean
,
bcftools
:
Boolean
,
bcftools_singlesample
:
Boolean
,
freebayes
:
Boolean
)
=
{
bcftoolsSinglesample
:
Boolean
,
freebayes
:
Boolean
,
varscanCnsSinglesample
:
Boolean
)
=
{
val
callers
:
ListBuffer
[
String
]
=
ListBuffer
()
if
(
raw
)
callers
.
append
(
"raw"
)
if
(
bcftools
)
callers
.
append
(
"bcftools"
)
if
(
bcftools
_s
inglesample
)
callers
.
append
(
"bcftools_singlesample"
)
if
(
bcftools
S
inglesample
)
callers
.
append
(
"bcftools_singlesample"
)
if
(
freebayes
)
callers
.
append
(
"freebayes"
)
if
(
varscanCnsSinglesample
)
callers
.
append
(
"varscan_cns_singlesample"
)
val
map
=
Map
(
"variantcallers"
->
callers
.
toList
)
val
pipeline
=
initPipeline
(
map
)
pipeline
.
inputBams
=
(
for
(
n
<-
1
to
bams
)
yield
n
.
toString
->
ShivaVariantcallingTest
.
inputTouch
(
"bam_"
+
n
+
".bam"
)).
toMap
val
illegalArgumentException
=
pipeline
.
inputBams
.
isEmpty
||
(!
raw
&&
!
bcftools
&&
!
bcftools
_s
inglesample
&&
!
freebayes
)
val
illegalArgumentException
=
pipeline
.
inputBams
.
isEmpty
||
(!
raw
&&
!
bcftools
&&
!
bcftools
S
inglesample
&&
!
freebayes
)
if
(
illegalArgumentException
)
intercept
[
IllegalArgumentException
]
{
pipeline
.
script
()
...
...
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