Skip to content

Commit

Permalink
Merge pull request #14 from cimranm/protein_searching
Browse files Browse the repository at this point in the history
Protein searching
  • Loading branch information
z5310969 authored Aug 4, 2022
2 parents f5076ae + 99ab21e commit eea2250
Show file tree
Hide file tree
Showing 12 changed files with 20,840 additions and 17,461 deletions.
4,028 changes: 0 additions & 4,028 deletions examples/pdbs/10gs.pdb

This file was deleted.

1,415 changes: 0 additions & 1,415 deletions examples/pdbs/134l.pdb

This file was deleted.

4,017 changes: 0 additions & 4,017 deletions examples/pdbs/16gs.pdb

This file was deleted.

10,768 changes: 10,768 additions & 0 deletions examples/pdbs/1u2z.pdb

Large diffs are not rendered by default.

2,147 changes: 0 additions & 2,147 deletions examples/pdbs/3eiy.pdb

This file was deleted.

5,899 changes: 5,899 additions & 0 deletions examples/pdbs/3opt.pdb

Large diffs are not rendered by default.

5,849 changes: 0 additions & 5,849 deletions examples/pdbs/4hhb.pdb

This file was deleted.

204 changes: 204 additions & 0 deletions examples/pdbs/A0A0C5B5G6.pdb

Large diffs are not rendered by default.

3,963 changes: 3,963 additions & 0 deletions examples/pdbs/P50549.pdb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/pdbs/Q5VSL9.pdb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
HEADER 01-JUL-21
HEADER 01-JUN-22
TITLE ALPHAFOLD MONOMER V2.0 PREDICTION FOR STRIATIN-INTERACTING PROTEIN 1
TITLE 2 (Q5VSL9)
COMPND MOL_ID: 1;
Expand Down
1 change: 1 addition & 0 deletions pomegranate/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
EMBEDDINGS_FILENAME = f"ALL_CURRENT.csv"
EMBEDDINGS_PATH = os.path.join(os.path.join(ROOT_DIR, 'embeddings'), EMBEDDINGS_FILENAME)

AF_VERSION = 3


8 changes: 4 additions & 4 deletions pomegranate/protein/phosphosite.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


### DEFINITIONS
from definitions import ROOT_DIR, STRUCTURE_PATH, SAVED_PDB_DIR, SAVED_GRAPHS_DIR
from definitions import ROOT_DIR, STRUCTURE_PATH, SAVED_PDB_DIR, SAVED_GRAPHS_DIR, AF_VERSION

### External libraries
import os
Expand Down Expand Up @@ -91,7 +91,7 @@ def get_protein_graph(id=None, config=None, database='PDB'):
print("AF or SP")
# NOTE: DEBUGGING: construct graph is always looking at examples/pdbs. Just put everything in examples/pdbs
# protein_path = download_alphafold_structure(id, aligned_score=False, out_dir=STRUCTURE_PATH)
protein_path = download_alphafold_structure(id, aligned_score=False, out_dir=SAVED_PDB_DIR)
protein_path = download_alphafold_structure(id, AF_VERSION, aligned_score=False, out_dir=SAVED_PDB_DIR)
#protein_path = STRUCTURE_PATH + id + '.pdb'
print("After")

Expand All @@ -118,15 +118,15 @@ def get_protein_graph(id=None, config=None, database='PDB'):
if database == 'PDB':
g = construct_graph(config=config, pdb_path=protein_path)
else:
g = construct_graph(pdb_path=protein_path)
g = construct_graph(config=config, pdb_path=protein_path)
else:
print(f"Retrieving {id}...")
if database == 'PDB':
#g = construct_graph(config=config, pdb_code=id)
g = construct_graph(config=config, pdb_code=id)
else: # NOTE: FIX THIS. BAD STYLE. Same line as 119
#g = construct_graph(config=config, pdb_path=protein_path)
g = construct_graph(pdb_path=protein_path)
g = construct_graph(config=config, pdb_path=protein_path)

# TODO: check if file exists and download if not.

Expand Down

0 comments on commit eea2250

Please sign in to comment.