dgidb / dgidb-v5

Providing interactions between drugs and genes sourced from a variety of publications and knowledgebases
https://dgidb.org
MIT License
14 stars 2 forks source link

Case insensitive gene claim category for resolvers #480

Closed mcannon068nw closed 2 months ago

mcannon068nw commented 6 months ago

The geneClaimCategory field in the genes resolver is currently case sensitive and will only return results if the string is fully capitalized. This search should probably be case insensitive.

Example:

Returns results:

{
  genes(names: ["BRAF"],
    geneClaimCategory:"CLINICALLY ACTIONABLE") {
    nodes { 
      interactions {
        drug {
          name
          conceptId
        }
      }
    }
  }
}

vs

Does not return results:

{
  genes(names: ["BRAF"],
    geneClaimCategory:"Clinically Actionable") {
    nodes { 
      interactions {
        drug {
          name
          conceptId
        }
      }
    }
  }
}
mcannon068nw commented 6 months ago

related: we should consider adding the geneClaimsCategory to the drugs resolver

github-actions[bot] commented 2 months ago

Closed by #497.