Skip to content
Snippets Groups Projects
Commit 67ae06c1 authored by bow's avatar bow
Browse files

Use scalaz's implicit option for boolean

parent e7764348
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@ import scala.language.reflectiveCalls
import org.broadinstitute.gatk.queue.QScript
import org.broadinstitute.gatk.queue.function.QFunction
import picard.analysis.directed.RnaSeqMetricsCollector.StrandSpecificity
import scalaz._, Scalaz._
import nl.lumc.sasc.biopet.core._
import nl.lumc.sasc.biopet.core.config._
......@@ -771,11 +772,6 @@ class Gentrap(val root: Configurable) extends QScript with MultiSampleQScript wi
object Gentrap extends PipelineCommand {
/** Implicit extension that allows to create option values based on boolean values */
implicit class RichBoolean(val b: Boolean) extends AnyVal {
final def option[A](a: => A): Option[A] = if (b) Some(a) else None
}
/** Enumeration of available expression measures */
object ExpMeasures extends Enumeration {
val FragmentsPerGene, FragmentsPerExon, BasesPerGene, BasesPerExon, CufflinksStrict, CufflinksGuided, CufflinksBlind = Value
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment