Closed advweb-grp1 closed 1 year ago
find ID's for all genes and post here
Create a composable that returns an object that has
{
"GeneName": "Description"
}
<Entrezgene-Set>
<Entrezgene>
<Entrezgene_gene>
<Gene-ref>
<Gene-ref_desc>DESCRIPTION HERE</Gene-ref_desc>
<Entrezgene-Set>
<Entrezgene>
<Entrezgene_summary>SUMMARY PARAGRAPH HERE</Entrezgene_summary>
make composable with all the mutations fetch the api and place the data inside of an array
Currently implemented a version which gets all the xml data for each ID Need to parse the xml to only retrieve the Gene-ref_desc and Entrezgene_summary Then need to put that data into the array
Change Composable so only 'Gene Description' and 'Gene Summary' is extracted and added to array as object!
Tried creating 'gene' store that would populate itself on user login, like hcm store., so there would have been a 'bulk' API call with the gene ID's. This store would have then been used in the MutationsView. But ran into errors with the API not reliably reaching an endpoints while looping through a list of ID'S, @AymanReh couldn't find a solution for this so for now, this approach has been abandoned.
Due to issues faced with the original approach we will, FOR NOW, just have an API call made for each time the user clicks the button to retrieve data. The page passes in the GeneID for the call and successfully parsing the necessary info returned (https://github.com/advweb-grp1/advanced-web-final-year-project/issues/48#issuecomment-1518812862), and displays it in a simple card. Has been manually tested but could also write some unit/e2e tests for this
Need to find a way to integrate the gene info api to the application