Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API to return gene ids in genome region #3

Open
KeywanHP opened this issue Jul 4, 2021 · 3 comments
Open

API to return gene ids in genome region #3

KeywanHP opened this issue Jul 4, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@KeywanHP
Copy link
Member

KeywanHP commented Jul 4, 2021

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:

  • TAXID: 3702
  • Chromosome: 4
  • BEGIN: 1000000
  • END: 2000000

Output:

  • Return count of 218 and list of all gene node ids
@KeywanHP KeywanHP added enhancement New feature or request good first issue Good for newcomers labels Jul 4, 2021
@ronupanchal
Copy link
Collaborator

ronupanchal commented Jul 9, 2021 via email

@ronupanchal
Copy link
Collaborator

I have done

@KeywanHP
Copy link
Member Author

KeywanHP commented Jul 20, 2021

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

Input

  • TAXID 4565
  • Chromosome: 1A
  • BEGIN: 10000000
  • END: 20000000

Output
Return about 168 gene ids.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants
@KeywanHP @ronupanchal and others