Skip to content

Updating database [Cecilia's PR]#1175

Merged
dondi merged 11 commits intodatabasefrom
cecilia-database
Mar 10, 2025
Merged

Updating database [Cecilia's PR]#1175
dondi merged 11 commits intodatabasefrom
cecilia-database

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

@ceciliazaragoza ceciliazaragoza marked this pull request as ready for review March 10, 2025 22:52
@ceciliazaragoza ceciliazaragoza changed the title Updating database Updating database [Cecilia's PR] Mar 10, 2025
Copy link
Owner

@dondi dondi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dondi dondi merged commit fbb02c1 into database Mar 10, 2025
3 checks passed
@dondi dondi deleted the cecilia-database branch March 10, 2025 23:10
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.

3 participants