Skip to content

Commit b065ffa

Browse files
committed
added fixsdf script
1 parent 0958224 commit b065ffa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

input_files/fixsdf.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import os
2+
import subprocess
3+
4+
mol2directory = "/Users/guowei/Code/benchmarksets/input_files/cd-set1/mol2/"
5+
sdfdirectory= "/Users/guowei/Code/benchmarksets/input_files/cd-set1/newsdf/"
6+
7+
for filename in os.listdir(mol2directory):
8+
# print(filename)
9+
command = "convert.py " + mol2directory + filename + " " + sdfdirectory + filename.split(".")[0] + ".sdf"
10+
subprocess.call(command)

0 commit comments

Comments
 (0)