注意

rs-simtools的Python项目详细描述


RSSimTools公司

用于通用和增强型MDSimulations的OpenMM包装器

这个repo包含几个封装在openMM基础设施上的模拟类,这些类允许快速开发和使用各种MD模拟。在

目前支持的模拟有:最小化、标准MD(基类)、加热和Equil MD模拟(分别为NVT和NPT)、溶剂标度MD、随机加速MD和元动力学MD

安装

依赖项:

RSSimTools只需要很少的依赖项。下面是可以使用conda或pip安装的列表:

python 3.6 or higher
simtk.openmm
numpy
mdtraj

为了安装最新的稳定版本,我们建议使用pip和下面的命令(这是保证提供稳定版本的唯一方法)。在

^{pr2}$

或者,您也可以从此repo下载源代码,导航到包含设置.py并使用本地安装

pip install ./

文件

快速启动运行

    # Load packages
    import parmed
    from simtk.openmm import unit
    from rs_simtools import MDSimulation, select_atoms
    
    # Note: Requires parameterized parmed in memory named parmed_structure!

    #instantiate sim from parmed alone, minimize (save h5 file) and run
    mdsim = MDSimulation(parmed_structure=parmed_structure)
    mdsim.minimize()
    minimized_parmed = mdsim.run(2 * unit.nanosecond)

    #build sim using a previous trajectory or h5 file
    mdsim = MDSimulation(parmed_structure=parmed_structure, coordinates=trajectory.h5)

    #build sim with positional restraints, run some equilibration and remove them for longer run
    protein_atoms = select_atoms(parmed_structure=parmed_structure, keyword_selection='protein')
    mdsim = MDSimulation(parmed_structure=parmed_structure, atoms_to_restrain=protein_atoms, restraint_weight=4)
    mdsim.run(1*unit.nanosecond)
    mdsim.update_restraint_weight(2)
    mdsim.run(1*unit.nanosecond)
    mdsim.remove_positional_restraints()
    end_parmed = mdsim.run(4 * unit.nanosecond)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java允许具有不同父类的类扩展类,而无需多重继承   java如何创建动态化的JScrollPane w/JPanel作为客户端?   java如何组织和命名包   在Java中读取属性文件   java无法解释的Android意图行为   在Java中动态执行多个BPEL文件的部署   ssl Java 6 SNI(服务器名称指示)?   java我们可以使用Robot框架自动化web和移动应用程序来执行并行执行   java for star pettern的循环   java为什么BinaryReader在线程中,从netty读取错误的数据包?   在java中将华氏度转换为摄氏度   使用Spark和java处理空值和引号编写CSV文件   Java中已排序日期到块的列表   visual studio代码VSCode Java不是linting或自动完成局部变量,而是自动完成Java快捷方式,如“sysout”