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

Simplify dbsnp

parent ba60c6d4
...@@ -58,9 +58,9 @@ trait Reference extends Configurable { ...@@ -58,9 +58,9 @@ trait Reference extends Configurable {
} }
lazy val geneAnnotationVersion: Option[String] = config("gene_annotation_name") lazy val geneAnnotationVersion: Option[String] = config("gene_annotation_name")
lazy val geneAnnotationSubPath = geneAnnotationVersion.map(x => List("gene_annotations", x)).getOrElse(Nil) lazy val geneAnnotationSubPath = geneAnnotationVersion.map(List("gene_annotations", _)).getOrElse(Nil)
lazy val dbsnpVersion: Option[Int] = config("dbsnp_version") lazy val dbsnpVersion: Option[String] = config("dbsnp_version")
lazy val dbsnpSubPath: List[String] = dbsnpVersion.map(x => List("dbsnp_annotations", x.toString)).getOrElse(Nil) lazy val dbsnpSubPath: List[String] = dbsnpVersion.map(List("dbsnp_annotations", _)).getOrElse(Nil)
def dbsnpVcfFile: Option[File] = config("dbsnp_vcf", extraSubPath = dbsnpSubPath) def dbsnpVcfFile: Option[File] = config("dbsnp_vcf", extraSubPath = dbsnpSubPath)
/** Returns the reference config path */ /** Returns the reference config path */
......
Markdown is supported
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