Skip to content

Commit 1b5bde5

Browse files
authored
Update get_ca_from_pdb.py
1 parent 1537639 commit 1b5bde5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

preprocessing/get_ca_from_pdb.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
@author: nabin
44
55
This script extracts carbon-alpha only atoms from protein structure (.pdb) and saves it.
6-
python3 get_ca_labels.py <input protein structure path> <output protein only ca structure path>
6+
Run:
7+
python3 get_ca_from_pdb.py <input protein structure path> <output protein only ca structure path>
78
89
"""
910

@@ -38,7 +39,6 @@ def save(x, y, z, count, amino_name, chain_id, true_ca_path):
3839

3940
def label_mask(pdb_path, true_ca_path):
4041
count = 0
41-
4242
parser = PDB.PDBParser(QUIET=True)
4343
pdb_map = pdb_path
4444
struct = parser.get_structure("CA", pdb_map)
@@ -55,7 +55,6 @@ def label_mask(pdb_path, true_ca_path):
5555

5656

5757
if __name__ == "__main__":
58-
5958
input_pdb = sys.argv[1]
6059
true_ca_pdb = sys.argv[2]
6160
if os.path.exists(true_ca_pdb):

0 commit comments

Comments
 (0)