-
Notifications
You must be signed in to change notification settings - Fork 8
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
Updating database #1175
base: database
Are you sure you want to change the base?
Updating database #1175
Conversation
… namespaces and addition of timestamp. need to test that queries work correctly
server/dals/network-dal.js
Outdated
gene_regulatory_network.gene WHERE (gene.gene_id ='${gene}' | ||
OR gene.display_gene_id ='${gene}')`; | ||
${namespace} WHERE (gene.gene_id ='${gene}' | ||
OR gene.display_gene_id ='${gene}') AND gene.time_stamp ='${timestamp}'`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Old namespace doesn't have timestamp so this would cause error
(LOWER(gene.gene_id)=LOWER('${geneProtein}') OR LOWER(gene.display_gene_id)=LOWER('${geneProtein}') | ||
OR LOWER(protein.standard_name) =LOWER('${geneProtein}')) AND | ||
LOWER(gene.gene_id) = LOWER(protein.gene_systematic_name);`; | ||
${namespace}.gene, ${namespace}.protein WHERE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar here, old namepsace doesn't have timestamp. Additionally, if we query from protein table, then we should check the timestamp from the protein table. If we query from gene table, then we should check the timestamp from the gene table.
…ry to only have timestamp query if timestamp is 2025 or later. need to fix query though since ZAP1 gene is not showing correct self-regulating expression
…constants.js, removed trailing spaces.
…ed constants to dbConstants, and now queries don't perform correctly
…ot currently using dbConstants file
…s and protein-dals. correctly make query based on timestamp, need to check if add source to query
I verified the code is working |
No description provided.