org.hammerlab.genomics.readsets.args.Base.scala Maven / Gradle / Ivy
The newest version!
package org.hammerlab.genomics.readsets.args
import org.hammerlab.genomics.readsets.PerSample
import org.hammerlab.genomics.readsets.io.{Input, ReadFilterArgs}
trait Base
extends ReadFilterArgs
with NoSequenceDictionaryArgs {
def paths: Array[String]
def sampleNames: Array[String]
lazy val inputs: PerSample[Input] = {
paths.indices.map(i =>
Input(
i,
if (i < sampleNames.length)
sampleNames(i)
else
paths(i),
paths(i)
)
)
}
}