diff --git a/biopet-framework/src/main/java/nl/lumc/sasc/biopet/wrappers/Sha1sum.scala b/biopet-framework/src/main/java/nl/lumc/sasc/biopet/wrappers/Sha1sum.scala new file mode 100644 index 0000000000000000000000000000000000000000..d89e3d9ef2b0a9c3982653c3dfcb8edb9e96ca5c --- /dev/null +++ b/biopet-framework/src/main/java/nl/lumc/sasc/biopet/wrappers/Sha1sum.scala @@ -0,0 +1,18 @@ +package nl.lumc.sasc.biopet.wrappers + +import nl.lumc.sasc.biopet.core._ +import org.broadinstitute.sting.queue.function.CommandLineFunction +import org.broadinstitute.sting.commandline._ +import java.io.File + +class Sha1sum(val globalConfig: Config) extends CommandLineFunction { + def this() = this(new Config(Map())) + this.analysisName = "sha1sum" + val config: Config = globalConfig.getAsConfig("sha1sum") + logger.debug("Config for " + this.analysisName + ": " + config) + + @Input(doc="Zipped file") var in: File = _ + @Output(doc="Unzipped file") var out: File = _ + + def commandLine = "sha1sum %s > %s".format(in, out) +} \ No newline at end of file