Source code for ligandparam.recipes.buildligand

from ligandparam.parametrization import Recipe
from ligandparam.stages import *


[docs] class BuildLigand(Recipe): def __init__(self, *args, **kwargs): """ This is a recipe for doing a parametrization of a ligand using the RESP method, and then building the ligand in gas, aqueous, and target environments. This recipe has a default list of stages that are run, and the stages can be disable by passing a dictionary of stages to disable to the disable stages method defined in the Recipe class. default_stage_list = { "Initialize": True, "Normalize1": True, "Minimize": True, "Rotate": True, "GrabGaussianCharge": True, "MultiRespFit": True, "UpdateCharge": True, "Normalize2": True, "UpdateNames": True, "UpdateTypes": True, "ParmChk": True, "Leap": True, "BuildGas": True, "BuildAq": True, "BuildTarget": True } """ super().__init__(*args, **kwargs) return
[docs] def setup(self): self.stages = [ StageInitialize("Initialize", inputoptions=self.inputoptions), StageNormalizeCharge("Normalize1", orig_mol2=self.base_name+".antechamber.mol2", new_mol2=self.base_name+".antechamber.mol2", inputoptions=self.inputoptions), StageGaussian("Minimize", inputoptions=self.inputoptions), StageGaussianRotation("Rotate", alpha=[0, 30, 60, 90, 120, 150, 180], beta=[0, 30, 60, 90], gamma=[0], inputoptions=self.inputoptions), StageGaussiantoMol2("GrabGaussianCharge", inputoptions=self.inputoptions), StageMultiRespFit("MultiRespFit", inputoptions=self.inputoptions), StageUpdateCharge("UpdateCharge", orig_mol2=self.base_name+".antechamber.mol2", new_mol2=self.base_name+".resp.mol2", charge_source="multistate", inputoptions=self.inputoptions), StageNormalizeCharge("Normalize2", orig_mol2=self.base_name+".resp.mol2", new_mol2=self.base_name+".resp.mol2", inputoptions=self.inputoptions), StageUpdate("UpdateNames", orig_mol2=self.base_name+'.antechamber.mol2', to_update=self.base_name+'.resp.mol2', new_mol2=self.base_name+'.resp.mol2', update_names=True, update_types=False, update_resname=True, inputoptions=self.inputoptions), StageUpdate("UpdateTypes", orig_mol2=self.base_name+'.log.mol2', to_update=self.base_name+'.resp.mol2', new_mol2=self.base_name+'.resp.mol2', update_names=False, update_types=True, inputoptions=self.inputoptions), StageParmChk("ParmChk", inputoptions=self.inputoptions), StageLeap("Leap", inputoptions=self.inputoptions), StageBuild("BuildGas", build_type='gas', inputoptions=self.inputoptions), StageBuild("BuildAq", build_type='aq', concentration=0.14, inputoptions=self.inputoptions), StageBuild("BuildTarget", build_type='target', inputoptions=self.inputoptions) ]