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

Added sample and library methods

parent 9c04281a
......@@ -26,7 +26,15 @@ class Summary(file: File) {
}).toMap
}
def getValue(path: List[String]): Option[Any] = {
ConfigUtils.getValueFromPath(map, path)
def getValue(path: String*): Option[Any] = {
ConfigUtils.getValueFromPath(map, path.toList)
}
def getSampleValue(sampleId: String, path: String*): Option[Any] = {
ConfigUtils.getValueFromPath(map, "samples" :: sampleId :: path.toList)
}
def getLibraryValue(sampleId: String, libId: String, path: String*): Option[Any] = {
ConfigUtils.getValueFromPath(map, "samples" :: sampleId :: "libraries" :: libId :: path.toList)
}
}
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