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

Updating database #1175

Draft
wants to merge 8 commits into
base: database
Choose a base branch
from
Draft

Updating database #1175

wants to merge 8 commits into from

Conversation

ntran18
Copy link
Collaborator

@ntran18 ntran18 commented Feb 19, 2025

No description provided.

… namespaces and addition of timestamp. need to test that queries work correctly
@ntran18 ntran18 changed the title Updating database Updating database NOT READY FOR REVIEW Feb 19, 2025
@ceciliazaragoza ceciliazaragoza changed the base branch from beta to database February 19, 2025 16:53
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}'`;
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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.

@ceciliazaragoza ceciliazaragoza marked this pull request as draft February 19, 2025 17:07
…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
…ed constants to dbConstants, and now queries don't perform correctly
@ceciliazaragoza ceciliazaragoza changed the title Updating database NOT READY FOR REVIEW Updating database Feb 26, 2025
@ntran18
Copy link
Collaborator Author

ntran18 commented Feb 27, 2025

I verified the code is working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants