Skip to content

Commit

Permalink
feat: delete script too
Browse files Browse the repository at this point in the history
  • Loading branch information
xnought committed Dec 6, 2023
1 parent eb4f469 commit 8b442fc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/data/pdbAlphaFold/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
*.pdb
*.pdb
13 changes: 13 additions & 0 deletions galaxy/delete_all.py
Original file line number Diff line number Diff line change
@@ -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()
6 changes: 5 additions & 1 deletion galaxy/upload_all.py
Original file line number Diff line number Diff line change
@@ -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"


Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 8b442fc

Please sign in to comment.