diff --git a/backend/src/data/pdbAlphaFold/.gitignore b/backend/src/data/pdbAlphaFold/.gitignore index b09e38ab..eadd157d 100644 --- a/backend/src/data/pdbAlphaFold/.gitignore +++ b/backend/src/data/pdbAlphaFold/.gitignore @@ -1 +1 @@ -*.pdb \ No newline at end of file +*.pdb diff --git a/galaxy/delete_all.py b/galaxy/delete_all.py new file mode 100644 index 00000000..58a897e4 --- /dev/null +++ b/galaxy/delete_all.py @@ -0,0 +1,13 @@ +import requests +import os + +DIR = "../backend/src/data/pdbAlphaFold" + + +def delete_protein_files(): + os.system(f"rm -fr {DIR}") + os.system(f"mkdir {DIR}") + os.system(f"echo *.pdb > {DIR}/.gitignore") + + +delete_protein_files() diff --git a/galaxy/upload_all.py b/galaxy/upload_all.py index 443326e5..36fd7cb4 100644 --- a/galaxy/upload_all.py +++ b/galaxy/upload_all.py @@ -1,6 +1,8 @@ import requests import os +CONTENT = "From the [Venom Biochemistry & Molecular Biology Laboratory](https://venombiochemistrylab.weebly.com/) and predicted using [AlphaFold](https://github.com/xinformatics/alphafold)." +REFS = "" DIR = "./master_venom_galaxy" @@ -40,7 +42,9 @@ def upload_all(): full_path = os.path.join(DIR, fn) name = fn.split(".")[0].replace("_", " ") species_name = available_species[fn[:2]] - upload_protein_file(full_path, name, species_name) + upload_protein_file( + full_path, name, species_name, content=CONTENT, refs=REFS + ) print("uploaded", full_path, name, species_name) remove_box()