Skip to content

Extend leap_gen_top to parameterize cofactors from database #10

@PabloNA97

Description

@PabloNA97

Hi! It's me again :)

To simulate cofactors one can use the manchester university database of parameter modifications. For example to simulate PDB 2FDV, one can extract the heteroatom pdb entries and use tleap -f leap.in with the following leap.in:

# Load protein ff
source leaprc.protein.ff14SB

# Load cofactor parameters
loadamberparams HEM.frcmod
loadamberprep HEM.prep

# Load PDB coordinates
mol = loadpdb HEM.pdb 

savepdb mol HEM_parameterized.pdb 

saveamberparm mol HEM.prmtop HEM.inpcrd
quit 

The file HEM.prep is used to understand the new residue (HEM) and atom types. See File formats. Unfortunately, this cannot be done from biobb_amber.leap.leap_gen_top. The only thing missing is to include "input_prep_path" as an input file completely analogous to "input_frcmod_path" but paired to the "loadamberprep" directive in leap.in instead of the "loadamberparams" one. See below:

In file biobb_amber/leap/leap_gen_top.py, after including the corresponding input file, line 159:

       ligands_prep_list = []
       if self.io_dict['in']['input_prep_path'] is not None:
           if self.io_dict['in']['input_prep_path'].endswith('.zip'):
               ligands_prep_list = fu.unzip_list(self.stage_io_dict['in']['input_prep_path'], dest_dir=self.tmp_folder, out_log=self.out_log)
           else:
               ligands_prep_list.append(self.stage_io_dict['in']['input_prep_path'])

Then in line 203:

           for amber_prep in ligands_prep_list:
               leapin.write("loadamberprep " + amber_prep + "\n")

Version:

biobb_amber 4.2.0 (I believe this is not available in 5.0.0 either)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions