Rothamsted / graphql-api

KnetMiner Platform API BETA
Apache License 2.0
1 stars 1 forks source link

API to return gene ids in genome region #3

Open KeywanHP opened 3 years ago

KeywanHP commented 3 years ago

Currently we have a REST endpoint that returns the number of genes within a region, like this: https://knetminer.com/araknet/countLoci?keyword=4-1000000-2000000

New graphql endpoints are needed to return the number of genes and list of genes in a genome region as defined via TAXID, Chromosome, BEGIN, END. All gene nodes in the graph will have following properties which can be filtered on.

http://knetminer-wheat.cyverseuk.org:7474/browser/

{
  "iri": "http://knetminer.org/data/rdf/resources/gene_at2g45720_locus_2043709",
  "identifier": "AT2G45720;locus:2043709",
  "TAXID": "3702",
  "Chromosome": "2",
  "END": "18836374",
  "comment": "PROTEIN_CODING",
  "ondexId": "493896",
  "BEGIN": "18833086",
  "altName": "F4I18.30",
  "prefName": "AT2G45720"
}

Following tests should be written: Input:

Output:

ronupanchal commented 3 years ago

Noted with thanks.

On Fri, 9 Jul 2021, 7:08 pm Keywan Hassani-Pak, @.***> wrote:

Here are the properties of a gene node:

{ "iri": "http://knetminer.org/data/rdf/resources/gene_at2g45720_locus_2043709", "identifier": "AT2G45720;locus:2043709", "TAXID": "3702", "Chromosome": "2", "END": "18836374", "comment": "PROTEIN_CODING", "ondexId": "493896", "BEGIN": "18833086", "altName": "F4I18.30", "prefName": "AT2G45720" }

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/Rothamsted/graphql-api/issues/3#issuecomment-877194714, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD3BYPB53Y3YT2Q5MCHW4G3TW33WDANCNFSM47ZSKH3A .

ronupanchal commented 3 years ago

I have done

KeywanHP commented 3 years ago

Here is another test example to use with the wheat Neo4j db: http://knetminer-wheat.cyverseuk.org:7474/browser/

Input

Output Return about 168 gene ids.

image