From 8b422e9f548e0683b323e478214422b73cb80430 Mon Sep 17 00:00:00 2001 From: Cinzia Date: Mon, 9 Aug 2021 14:14:02 +0100 Subject: [PATCH] Add partner field --- app/models/entities/Evidence.scala | 56 ++++++++++++++++++++---------- 1 file changed, 38 insertions(+), 18 deletions(-) diff --git a/app/models/entities/Evidence.scala b/app/models/entities/Evidence.scala index 4de4ebcc..6af864ba 100644 --- a/app/models/entities/Evidence.scala +++ b/app/models/entities/Evidence.scala @@ -141,28 +141,28 @@ object Evidence { resolve = js => (js.value \ "cohortPhenotypes").asOpt[Seq[String]]), Field("targetInModel", OptionType(StringType), - description = None, - resolve = js => (js.value \ "targetInModel").asOpt[String]), + description = None, + resolve = js => (js.value \ "targetInModel").asOpt[String]), Field("reactionId", - OptionType(StringType), - description = None, - resolve = js => (js.value \ "reactionId").asOpt[String]), + OptionType(StringType), + description = None, + resolve = js => (js.value \ "reactionId").asOpt[String]), Field("reactionName", - OptionType(StringType), - description = None, - resolve = js => (js.value \ "reactionName").asOpt[String]), + OptionType(StringType), + description = None, + resolve = js => (js.value \ "reactionName").asOpt[String]), Field("projectId", - OptionType(StringType), - description = None, - resolve = js => (js.value \ "projectId").asOpt[String]), + OptionType(StringType), + description = None, + resolve = js => (js.value \ "projectId").asOpt[String]), Field("variantId", - OptionType(StringType), - description = Some("Variant evidence"), - resolve = js => (js.value \ "variantId").asOpt[String]), + OptionType(StringType), + description = Some("Variant evidence"), + resolve = js => (js.value \ "variantId").asOpt[String]), Field("variantRsId", - OptionType(StringType), - description = Some("Variant dbSNP identifier"), - resolve = js => (js.value \ "variantRsId").asOpt[String]), + OptionType(StringType), + description = Some("Variant dbSNP identifier"), + resolve = js => (js.value \ "variantRsId").asOpt[String]), Field( "oddsRatioConfidenceIntervalLower", OptionType(FloatType), @@ -387,7 +387,27 @@ object Evidence { Field("contrast", OptionType(StringType), description = None, - resolve = js => (js.value \ "contrast").asOpt[String]) + resolve = js => (js.value \ "contrast").asOpt[String]), + Field("studyDescription", + OptionType(StringType), + description = None, + resolve = js => (js.value \ "studyDescription").asOpt[String]), + Field("crisprScreenLibrary", + OptionType(StringType), + description = None, + resolve = js => (js.value \ "crisprScreenLibrary").asOpt[String]), + Field("cellType", + OptionType(StringType), + description = None, + resolve = js => (js.value \ "cellType").asOpt[String]), + Field("cellLineBackground", + OptionType(StringType), + description = None, + resolve = js => (js.value \ "cellLineBackground").asOpt[String]), + Field("direction", + OptionType(StringType), + description = None, + resolve = js => (js.value \ "direction").asOpt[String]) ) ) }