#!/usr/bin/env python
import pymol
from pymol import *
import numpy as np
import os
def file_name(file_dir):
L = []
for root, dirs, files in os.walk(file_dir):
for file in files:
if os.path.splitext(file)[1] == '.pdb':
L.append(os.path.join(root , file))
return L
file_name_pdb=file_name('5.0-ctf0.73')
for i in range(file_name_pdb.__len__()):
print(i)
cmd.load(file_name_pdb[i])
pymol python脚本导入pdb
最新推荐文章于 2024-09-04 10:31:20 发布