Skip to content

Commit

Permalink
add l2g predictions
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhayhurst committed Oct 22, 2024
1 parent 282ac1d commit 7ea43a7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/entities/L2GPredictions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ case class L2GPredictions(
)

object L2GPredictions extends Logging {
implicit val colocalisationF: OFormat[L2GPredictions] = Json.format[L2GPredictions]
implicit val l2GPredictionsF: OFormat[L2GPredictions] = Json.format[L2GPredictions]
}
12 changes: 11 additions & 1 deletion app/models/gql/Objects.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,17 @@ object Objects extends Logging {
deriveObjectType[Backend, AlleleFrequency]()
implicit val biosampleImp: ObjectType[Backend, Biosample] = deriveObjectType[Backend, Biosample]()
implicit val l2gPredictionsImp: ObjectType[Backend, L2GPredictions] =
deriveObjectType[Backend, L2GPredictions]()
deriveObjectType[Backend, L2GPredictions](
ReplaceField(
"geneId",
Field(
"target",
OptionType(targetImp),
Some("Target"),
resolve = r => targetsFetcher.deferOpt(r.value.geneId)
)
)
)
implicit val colocalisationImp: ObjectType[Backend, Colocalisation] =
deriveObjectType[Backend, Colocalisation](
ReplaceField(
Expand Down

0 comments on commit 7ea43a7

Please sign in to comment.