Skip to content

Prepare systems with multiple ligands #326

Open
@cespos

Description

@cespos

Is your feature request related to a problem? Please describe.

I was trying to prepare a system with a protein and 2 ligands (given as SDF files).
However, both ligands were named "MOL" and both ligands have an index "1" in the output coordinate and topology files.

Describe the solution you'd like
Would it be possible to rename the residue-name of the single ligands and update the residue index?

Describe alternatives you've considered
Not sure if there are alternatives.

Additional context

This is some toy code similar to the one I used:

import BioSimSpace

lig1_coord = BioSimSpace.IO.readMolecules("lig1.sdf")[0]
lig1 = BioSimSpace.Parameters.parameterise(lig1_coord, "gaff2", work_dir=work_dir).getMolecule()

lig2_coord = BioSimSpace.IO.readMolecules("lig2.sdf")[0]
lig2 = BioSimSpace.Parameters.parameterise(lig2_coord, "gaff2", work_dir=work_dir).getMolecule()

ligands = lig1 + lig2 
BioSimSpace.IO.saveMolecules("ligands_multi", ligands, "grotop") 
BioSimSpace.IO.saveMolecules("ligands_multi", ligands, "gro87")

This is how the ligands.gro looks like:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions