Skip to content

Commit

Permalink
Merge pull request #49 from opentargets/mk-refactor-clickhouse-queries
Browse files Browse the repository at this point in the history
refactor clickhouse queries and minor cleanups
  • Loading branch information
mkarmona authored Jan 23, 2019
2 parents 7c085e3 + 3ca3d7d commit 0cf57af
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 26 deletions.
12 changes: 0 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,6 @@ scala:
- 2.12.6
jdk:
- oraclejdk8
branches:
only:
- master
- "/\\d+\\.\\d+\\.\\d+/"
- "/mk.*/"
- "/af.*/"
- "/ck.*/"
- "/ms.*/"
- "/MS.*/"
- "/gp.*/"
- "/pl.*/"
- "/gk.*/"
services:
- docker
env:
Expand Down
9 changes: 0 additions & 9 deletions app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,3 @@ automatic_scaling:

health_check:
enable_health_check: True


# NOTE: Values below are commonly inserted by our CI system..
# env_variables:

# endpoints_api_service:
# name: ${APPENG_VERSION}.${GOOGLE_PROJECT_ID}.appspot.com
# config_id: ${GCENDPOINT_VERSION}
# TODO make sure this config_id updates for every deployment
6 changes: 3 additions & 3 deletions app/models/Backend.scala
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ class Backend @Inject()(@NamedDatabase("default") protected val dbConfigProvider
*
* NOTE! WARNING! THERE IS A DIFF AT THE MOMENT BETWEEN THE VARIANTS COMING FROM VCF FILE
* AND THE ONES COMING FROM UKB AND WE NEED TO FILL THAT GAP WHILE THIS ISSUE IS NOT
* ADDRESSED. AT THE MOMENT, THE WAY TO DO IS USING THE VARIANT APPLY CONTRUCTOR FROM A
* ADDRESSED. AT THE MOMENT, THE WAY TO DO IS USING THE VARIANT APPLY CONSTRUCTOR FROM A
* STRING TO GET A WHITE-LABEL VARIANT WITH ANY OTHER REFERENCES FROM RSID OR NEAREST GENES
* (NONCODING AND PROTCODING)
*/
Expand All @@ -337,9 +337,9 @@ class Backend @Inject()(@NamedDatabase("default") protected val dbConfigProvider

db.run(q.result.asTry).map {
case Success(v) =>
val missingVIds = (variantIds diff v.map(_.id))
val missingVIds = variantIds diff v.map(_.id)

v ++ (missingVIds.map(DNA.Variant(_)).withFilter(_.isRight).map(_.right.get))
v ++ missingVIds.map(DNA.Variant(_)).withFilter(_.isRight).map(_.right.get)
case Failure(ex) =>
logger.error("BDIOAction failed with " + ex.getMessage)
Seq.empty
Expand Down
2 changes: 1 addition & 1 deletion app/models/DNA.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ object DNA {
/** match a region (chr:start-end) in a list of highly dense regions true if overlaps false otherwise
*
* @param region the region to match against dense regions
* @return Some matched or not | None if denseregion map is None too
* @return matched or not
*/
override def matchRegion(region: Region): Boolean = {
denseRegions.get(region.chrId) match {
Expand Down
2 changes: 1 addition & 1 deletion production.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ include "application.conf"
# https://www.playframework.com/documentation/latest/Configuration
http.port = 8080
http.port = ${?PLAY_PORT}
play.http.secret.key = "changeme"
play.http.secret.key = "@t/PB4rK]zIFsMcFLMMSimE`1bG0Gf^:B`u^=3zh7cBjDoX>[PcNG/y4sSwn]hUZ"
play.http.secret.key = ${?PLAY_SECRET}

# Root logger:
Expand Down

0 comments on commit 0cf57af

Please sign in to comment.