Conversation
…t == float for length, molecular wweights and pi
Add error handling when run main.py for network database
… protein interactions to have timestamp and for gene and protein tables and annotation type for physical interactions table
… protein_protein_interactions to include _new, and fixing the populate data scripts to add timestamp and source to the gene and protein tables, and adding annotation type for both GRN and PPI network and interactions table
… namespaces and addition of timestamp. need to test that queries work correctly
…, and rename database2 to database
Collaborator
Author
|
This PR should be ready to review. I'm sorry, this PR is large :(((. I didn't mean to ..... |
…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
…y_network_with_timestamp
Updating database [Cecilia's PR]
dondi
approved these changes
Mar 11, 2025
Owner
dondi
left a comment
There was a problem hiding this comment.
Phew! It’s a lot of code and documentation, but it’s actually a net 450 fewer lines 💪🏼
We should look into ways to protect against SQL injection in a future ticket, plus of course we should actually migrate our existing databases to this new approach. I’ll write up new issues for those
Comment on lines
+50
to
+53
| return `SELECT DISTINCT protein1, protein2${annotation} FROM | ||
| ${namespace}.physical_interactions WHERE | ||
| physical_interactions.time_stamp='${timestamp}' AND physical_interactions.source='${source}' AND | ||
| ${buildNetworkProteinsQuery(proteins)} ORDER BY protein1 DESC;`; |
Owner
There was a problem hiding this comment.
Just noting that the approach leaves us theoretically vulnerable to SQL injection attacks. For future work, we should look into safer ways to build our SQL queries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.