From 28b42baf1fe0af0bfa87014d5341a8fabb1889d6 Mon Sep 17 00:00:00 2001 From: Peter van 't Hof <p.j.van_t_hof@lumc.nl> Date: Mon, 16 Feb 2015 19:32:28 +0100 Subject: [PATCH] Added SampleLibraryTag --- .../sasc/biopet/core/SampleLibraryTag.scala | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/SampleLibraryTag.scala diff --git a/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/SampleLibraryTag.scala b/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/SampleLibraryTag.scala new file mode 100644 index 000000000..860a4464e --- /dev/null +++ b/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/SampleLibraryTag.scala @@ -0,0 +1,21 @@ +package nl.lumc.sasc.biopet.core + +import nl.lumc.sasc.biopet.core.config.Configurable +import org.broadinstitute.gatk.utils.commandline.Argument + +/** + * Created by pjvan_thof on 2/16/15. + */ +trait SampleLibraryTag extends Configurable { + @Argument(doc = "Sample ID", shortName = "sample", required = false) + var sampleId: Option[String] = root match { + case tag: SampleLibraryTag => tag.sampleId + case _ => None + } + + @Argument(doc = "Library ID", shortName = "library", required = false) + var libId: Option[String] = root match { + case tag: SampleLibraryTag => tag.libId + case _ => None + } +} -- GitLab