Skip to content

Commit

Permalink
fix: uri length and v2g display labels missing distance
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarmona committed May 30, 2019
1 parent 125abef commit e5f673e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/GQLSchema.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ object GQLSchema extends GQLGene with GQLVariant with GQLStudy with GQLIndexVari
resolve = r => variantsFetcher.defer(r.value.rVariant.id)),
Field("gene", gene,
Some("Gene"),
resolve = rsl => genesFetcher.defer(rsl.value.rGeneId)),
resolve = rsl => genesFetcher.defer(rsl.value.rGeneId.get)),
Field("phenotypeId", StringType,
Some("QTL Phenotype ID"),
resolve = r => r.value.rPhenotype.get),
Expand Down
2 changes: 2 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,5 @@ libraryDependencies ++= Seq(

// Adds additional packages into conf/routes
// play.sbt.routes.RoutesKeys.routesImport += "io.opentargets.binders._"
// uri length for dev mode
PlayKeys.devSettings := Seq("play.akka.dev-mode.akka.http.parsing.max-uri-length" -> "16k")
7 changes: 7 additions & 0 deletions conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,11 @@ play.filters {
blackList = []
}
}
}

akka.http {
parsing {
# get the length of the uri a bit larger
max-uri-length = 16k
}
}
1 change: 1 addition & 0 deletions resources/v2g_display_labels.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
{"key":"vep","value":{"display_label":"VEP (Ensembl)","overview_tooltip":"Most severe coding-sequence consequence(s) from Ensembl's Variant Effect Predictor","tab_subtitle":"Most severe coding-sequence consequence(s) from Ensembl's Variant Effect Predictor","pmid":"PMID:27268795"}}
{"key":"eqtl","value":{"display_label":"eQTL","overview_tooltip":"Summary of evidence linking this variant to changes in gene expression","tab_subtitle":"Evidence linking this variant to changes gene expression across tissues/cell types","pmid":null}}
{"key":"pqtl","value":{"display_label":"pQTL (Sun, 2018)","overview_tooltip":"Summary of evidence linking this variant to protein abundance in blood plasma","tab_subtitle":"Evidence linking this variant to protein abundance in Sun *et al.* (2018) pQTL data","pmid":"PMID:29875488"}}
{"key":"canonical_tss","value":{"display_label":"Distance (Canonical TSS)","overview_tooltip":"Distance from the variant to the transcription start site (TSS) of each gene within ±500Kb","tab_subtitle":"Distance from the variant to the transcription start site (TSS) of each gene within ±500Kb","pmid":null}}

0 comments on commit e5f673e

Please sign in to comment.