Skip to content

Commit

Permalink
Add partner field
Browse files Browse the repository at this point in the history
  • Loading branch information
cmalangone committed Aug 9, 2021
1 parent 879d7c5 commit 8b422e9
Showing 1 changed file with 38 additions and 18 deletions.
56 changes: 38 additions & 18 deletions app/models/entities/Evidence.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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])
)
)
}

0 comments on commit 8b422e9

Please sign in to comment.