Code for database upload and database layout.
mysql> SHOW TABLES;
| Table Name |
|---|
| differential_abundance |
| dynaprot_experiment |
| dynaprot_experiment_comparison |
| go_analysis |
| go_term |
| organism |
| organism_proteome |
| organism_proteome_entries |
| protein_scores |
Use the uploadNewExpweriment/uploadLipExperiment.sh script to upload an experiment folder to the remote VM, run the upload scripts, and clean up afterward.
This script:
-
Copies the experiment folder to the remote VM.
-
Runs the upload scripts
metadata.pyandproteinScores.pylocated in the src directory. -
Ingests files such as:
-
params.yaml
-
qc_plots.pdf
-
differential_abundance_<...>.tsv
-
go_term_<...>.tsv
-
-
Inserts data into the appropriate MySQL tables.
-
Updates table indexes to ensure good database performance.
-
Cleans up the uploaded folder from the VM after processing.
-
Once complete, the experiment becomes visible at: https://www.dynaprot.org/experiments
echo "Usage: ./uploadLipExperiment.sh /path/to/folder vm_username"
./uploadLipExperiment.sh LiP_School9_LiP ekrismer-
The
MYSQL_PASSWORDis currently set to an empty string in the script for security reasons. -
Do not commit actual passwords or credentials to the repository.
-
Instead, export credentials in your shell or use environment files or secrets management tools for production.
