Skip to content
Snippets Groups Projects
Commit 0ffbe10a authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Make input required and remove .exist

parent 6c08d74e
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ class IGVToolsCount(val root: Configurable) extends IGVTools {
@Input(doc = "Bam File")
var input: File = _
@Input(doc = "<genome>.chrom.sizes File")
@Input(doc = "<genome>.chrom.sizes File", required = true)
var genomeChromSizes: File = _
@Output
......@@ -46,7 +46,6 @@ class IGVToolsCount(val root: Configurable) extends IGVTools {
override def afterGraph {
super.afterGraph
if (!input.exists()) throw new FileNotFoundException("Input bam is required for IGVToolsCount")
if (!wig.exists(_.getAbsolutePath.endsWith(".wig")))
throw new IllegalArgumentException("Wiggle file should have a .wig file-extension")
......
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