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
08bcca4d
Commit
08bcca4d
authored
9 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Each aligner has his own class now
parent
ba0cf48a
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/mapping/src/test/scala/nl/lumc/sasc/biopet/pipelines/mapping/AbstractTestMapping.scala
+38
-2
38 additions, 2 deletions
...c/sasc/biopet/pipelines/mapping/AbstractTestMapping.scala
with
38 additions
and
2 deletions
public/mapping/src/test/scala/nl/lumc/sasc/biopet/pipelines/mapping/Mapping
Test
.scala
→
public/mapping/src/test/scala/nl/lumc/sasc/biopet/pipelines/mapping/
AbstractTest
Mapping.scala
+
38
−
2
View file @
08bcca4d
...
@@ -36,7 +36,7 @@ import org.testng.annotations.{ AfterClass, DataProvider, Test }
...
@@ -36,7 +36,7 @@ import org.testng.annotations.{ AfterClass, DataProvider, Test }
*
*
* Created by pjvan_thof on 2/12/15.
* Created by pjvan_thof on 2/12/15.
*/
*/
class
Mapping
Test
extends
TestNGSuite
with
Matchers
{
abstract
class
AbstractTest
Mapping
extends
TestNGSuite
with
Matchers
{
def
initPipeline
(
map
:
Map
[
String
,
Any
])
:
Mapping
=
{
def
initPipeline
(
map
:
Map
[
String
,
Any
])
:
Mapping
=
{
new
Mapping
{
new
Mapping
{
override
def
configName
=
"mapping"
override
def
configName
=
"mapping"
...
@@ -46,6 +46,8 @@ class MappingTest extends TestNGSuite with Matchers {
...
@@ -46,6 +46,8 @@ class MappingTest extends TestNGSuite with Matchers {
}
}
}
}
val
aligner
:
String
@DataProvider
(
name
=
"mappingOptions"
)
@DataProvider
(
name
=
"mappingOptions"
)
def
mappingOptions
=
{
def
mappingOptions
=
{
val
aligners
=
Array
(
"bwa-mem"
,
"bwa-aln"
,
"star"
,
"star-2pass"
,
"bowtie"
,
"stampy"
,
"gsnap"
,
"tophat"
)
val
aligners
=
Array
(
"bwa-mem"
,
"bwa-aln"
,
"star"
,
"star-2pass"
,
"bowtie"
,
"stampy"
,
"gsnap"
,
"tophat"
)
...
@@ -56,7 +58,6 @@ class MappingTest extends TestNGSuite with Matchers {
...
@@ -56,7 +58,6 @@ class MappingTest extends TestNGSuite with Matchers {
val
zipped
=
Array
(
true
,
false
)
val
zipped
=
Array
(
true
,
false
)
for
(
for
(
aligner
<-
aligners
;
pair
<-
paired
;
pair
<-
paired
;
chunk
<-
chunks
;
chunk
<-
chunks
;
skipMarkDuplicate
<-
skipMarkDuplicates
;
skipMarkDuplicate
<-
skipMarkDuplicates
;
...
@@ -99,7 +100,42 @@ class MappingTest extends TestNGSuite with Matchers {
...
@@ -99,7 +100,42 @@ class MappingTest extends TestNGSuite with Matchers {
}
}
}
}
class
MappingBwaMemTest
extends
AbstractTestMapping
{
val
aligner
=
"bwa-mem"
}
class
MappingBwaAlnTest
extends
AbstractTestMapping
{
val
aligner
=
"bwa-aln"
}
class
MappingStarTest
extends
AbstractTestMapping
{
val
aligner
=
"star"
}
class
MappingStar2PassTest
extends
AbstractTestMapping
{
val
aligner
=
"star-2pass"
}
class
MappingBowtieTest
extends
AbstractTestMapping
{
val
aligner
=
"bowtie"
}
class
MappingStampyTest
extends
AbstractTestMapping
{
val
aligner
=
"stampy"
}
class
MappingGsnapTest
extends
AbstractTestMapping
{
val
aligner
=
"gsnap"
}
class
MappingTophatTest
extends
AbstractTestMapping
{
val
aligner
=
"tophat"
}
object
MappingTest
{
object
MappingTest
{
val
aligners
=
Array
(
"bwa-mem"
,
"bwa-aln"
,
"star"
,
"star-2pass"
,
"bowtie"
,
"stampy"
,
"gsnap"
,
"tophat"
)
val
outputDir
=
Files
.
createTempDir
()
val
outputDir
=
Files
.
createTempDir
()
new
File
(
outputDir
,
"input"
).
mkdirs
()
new
File
(
outputDir
,
"input"
).
mkdirs
()
...
...
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