Skip to content

Commit

Permalink
fix: remove optional values for some coloc queries as coloc table has…
Browse files Browse the repository at this point in the history
… to be filtered
  • Loading branch information
mkarmona committed May 29, 2019
1 parent b3e3bda commit 125abef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/models/GQLSchema.scala
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ object GQLSchema extends GQLGene with GQLVariant with GQLStudy with GQLIndexVari
resolve = rsl => studiesFetcher.defer(rsl.value.lStudy)),
Field("rightVariant", variant,
Some("Tag variant ID as ex. 1_12345_A_T"),
resolve = r => Variant(r.value.rVariant.id).right.get),
resolve = r => variantsFetcher.defer(r.value.rVariant.id)),
Field("rightStudy", study,
Some("study ID"),
resolve = rsl => studiesFetcher.defer(rsl.value.rStudy)),
Expand Down Expand Up @@ -1060,12 +1060,12 @@ object GQLSchema extends GQLGene with GQLVariant with GQLStudy with GQLIndexVari

val qtlColocalisation = ObjectType(
"QTLColocalisation", fields[Backend, ColocRow](
Field("indexVariant", OptionType(variant),
Field("indexVariant", variant,
Some("Tag variant ID as ex. 1_12345_A_T"),
resolve = r => variantsFetcher.deferOpt(r.value.rVariant.id)),
Field("gene", OptionType(gene),
resolve = r => variantsFetcher.defer(r.value.rVariant.id)),
Field("gene", gene,
Some("Gene"),
resolve = rsl => genesFetcher.deferOpt(rsl.value.rGeneId)),
resolve = rsl => genesFetcher.defer(rsl.value.rGeneId)),
Field("phenotypeId", StringType,
Some("QTL Phenotype ID"),
resolve = r => r.value.rPhenotype.get),
Expand Down

0 comments on commit 125abef

Please sign in to comment.