Skip to content
Snippets Groups Projects
Commit b32e2aa7 authored by Holger Brandl's avatar Holger Brandl
Browse files

improved bash wrapper

parent ad70d502
No related branches found
No related tags found
No related merge requests found
...@@ -28,18 +28,21 @@ Options: ...@@ -28,18 +28,21 @@ Options:
""" """
val doArgs = Docopt(usage).parse(args.toList()).map { val doArgs = Docopt(usage).parse(args.toList()).map {
it.key.removePrefix("--").replace("[<>]", "") to it.value?.toString() it.key.removePrefix("--").replace("[<>]".toRegex(), "") to it.value?.toString()
}.toMap() }.toMap()
//println(doArgs.keys.joinToString())
//println(doArgs.values.joinToString())
//doArgs["fastq_files"]
// extract all configuration parameters // extract all configuration parameters
val fastqFiles = (doArgs["fastq_files"] as String).split(" ").map { File(it) } val fastqFiles = (doArgs["fastq_files"] as String).substring(1).substringBefore("]").split(" ").map { File(it) }
val igenome = File(doArgs["igenome"]) val igenome = File(doArgs["igenome"])
val star_index = File(igenome, "Sequence/StarIndex") val star_index = File(igenome, "Sequence/StarIndex")
val gtfFile = if (doArgs["gtfFile"] != null) File(doArgs["gtfFile"]) else File(igenome, "Annotation/Genes/genes.gtf") val gtfFile = if (doArgs["gtfFile"] != null) File(doArgs["gtfFile"]) else File(igenome, "Annotation/Genes/genes.gtf")
println("validating inputs...")
// make sure that STAR is in the PATH // make sure that STAR is in the PATH
......
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