Commit b9f9c369 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Fixed mother and father key

parent 2c7bb613
......@@ -94,7 +94,7 @@ trait MultiSampleQScript extends SummaryQScript { qscript: QScript =>
}
lazy val father = {
val g: Option[String] = config("gender", sample = sampleId, library = null)
val g: Option[String] = config("father", 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("gender", sample = sampleId, library = null)
val g: Option[String] = config("mother", 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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment