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

Merge branch 'fix-toucan-settings' into 'develop'

Fix VEP `--failed` flag  

the `failed` flag should be a flag per the documentation
(see:
 http://grch37.ensembl.org/info/docs/tools/vep/script/vep_options.html,
and
http://oct2014.archive.ensembl.org/info/docs/tools/vep/script/vep_options.html )
But, when running, it requires a numeric value.
When running the VEP with verbose mode, it
appears that all boolean flags get converted to 1.
Therefore, I'm setting `failed` to have value 1.

This bug has been reported to Ensembl. It occurs in all versions, including most recent version 82.

@p.j.van_t_hof Should we include a failback mode, in case Ensembl fixes this in version 83?  

See merge request !267
parents 197605c1 b7b1a0f3
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@ class VariantEffectPredictor(val root: Configurable) extends BiopetCommandLineFu
var maf_esp: Boolean = config("maf_esp", default = false)
var old_map: Boolean = config("old_maf", default = false)
var pubmed: Boolean = config("pubmed", default = false)
var failed: Boolean = config("failed", default = false)
var vcf: Boolean = config("vcf", default = true)
var json: Boolean = config("json", default = false)
var gvf: Boolean = config("gvf", default = false)
......@@ -140,6 +140,8 @@ class VariantEffectPredictor(val root: Configurable) extends BiopetCommandLineFu
var port: Option[Int] = config("port")
var db_version: Option[Int] = config("db_version")
var buffer_size: Option[Int] = config("buffer_size")
// ought to be a flag, but is BUG in VEP; becomes numeric ("1" is true)
var failed: Option[Int] = config("failed")
override def beforeGraph(): Unit = {
super.beforeGraph()
......@@ -189,7 +191,6 @@ class VariantEffectPredictor(val root: Configurable) extends BiopetCommandLineFu
conditional(maf_1kg, "--maf_1kg") +
conditional(maf_esp, "--maf_esp") +
conditional(pubmed, "--pubmed") +
conditional(failed, "--failed") +
conditional(vcf, "--vcf") +
conditional(json, "--json") +
conditional(gvf, "--gvf") +
......@@ -249,6 +250,7 @@ class VariantEffectPredictor(val root: Configurable) extends BiopetCommandLineFu
optional("--freq_freq", freq_freq) +
optional("--port", port) +
optional("--db_version", db_version) +
optional("--buffer_size", buffer_size)
optional("--buffer_size", buffer_size) +
optional("--failed", failed)
}
......@@ -39,7 +39,7 @@ class Toucan(val root: Configurable) extends QScript with BiopetQScript with Sum
}
override def defaults = Map(
"varianteffectpredictor" -> Map("everything" -> true, "failed" -> true)
"varianteffectpredictor" -> Map("everything" -> true, "failed" -> 1, "allow_non_variant" -> true)
)
//defaults ++= Map("varianteffectpredictor" -> Map("everything" -> true))
......
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