Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
b9f9c369
Commit
b9f9c369
authored
Dec 29, 2015
by
Peter van 't Hof
Browse files
Fixed mother and father key
parent
2c7bb613
Changes
1
Show whitespace changes
Inline
Side-by-side
public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/MultiSampleQScript.scala
View file @
b9f9c369
...
...
@@ -94,7 +94,7 @@ trait MultiSampleQScript extends SummaryQScript { qscript: QScript =>
}
lazy
val
father
=
{
val
g
:
Option
[
String
]
=
config
(
"
gend
er"
,
sample
=
sampleId
,
library
=
null
)
val
g
:
Option
[
String
]
=
config
(
"
fath
er"
,
sample
=
sampleId
,
library
=
null
)
g
.
foreach
{
father
=>
if
(
sampleId
!=
father
)
Logging
.
addError
(
s
"Father for $sampleId can not be itself"
)
if
(
samples
.
contains
(
father
))
if
(
samples
(
father
).
gender
==
Gender
.
Male
)
...
...
@@ -105,7 +105,7 @@ trait MultiSampleQScript extends SummaryQScript { qscript: QScript =>
}
lazy
val
mother
=
{
val
g
:
Option
[
String
]
=
config
(
"
gend
er"
,
sample
=
sampleId
,
library
=
null
)
val
g
:
Option
[
String
]
=
config
(
"
moth
er"
,
sample
=
sampleId
,
library
=
null
)
g
.
foreach
{
mother
=>
if
(
sampleId
!=
mother
)
Logging
.
addError
(
s
"mother for $sampleId can not be itself"
)
if
(
samples
.
contains
(
mother
))
if
(
samples
(
mother
).
gender
==
Gender
.
Female
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment