Skip to content

ERROR for assigning angles. #628

@laowang-os

Description

@laowang-os

Hello, I'm a beginner of Foyer. Forgive my boldness in initiating this corrspondence without prior acquaintance.
Here is the situations I met.

Firstly I ran the following codes for generating a '.pdb' stucture file by mbuild successfully.
import mbuild as mb
comp_1 = mb.load('[H]c1[nH]c([H])c2c1CCC2', smiles=True)
comp_1.save('comp_1.pdb')

Secondly I ran the following codes for assigning parameters to my '.pdb' file.
import foyer
import parmed
mol = parmed.load_file("comp_1.pdb")
ff = foyer.Forcefield(forcefield_files=['oplsaa.xml'])
mol_ff = ff.apply(mol)
Then I got the error as following:
FoyerError: Found multiple types for atom 3 (6): ['opls_544', 'opls_141'].
So I used the 'overrides' command to change the line from
<Type name="opls_544" class="CS" element="C" mass="12.01100" def="[C;X3;r5]([C;%opls_543])" desc="C3 in pyrrole" overrides="opls_142" doi="10.1021/jp981200o"/>
to
<Type name="opls_544" class="CS" element="C" mass="12.01100" def="[C;X3;r5]([C;%opls_543])" desc="C3 in pyrrole" overrides="opls_142,opls_141" doi="10.1021/jp981200o"/>
at the same time I created a new file called 'my_oplsaa.xml'.

Thirdly I ran the codes
import foyer
import parmed
mol = parmed.load_file("comp_1.pdb")
ff = foyer.Forcefield(forcefield_files=['my_oplsaa.xml'])
mol_ff = ff.apply(mol)
Then I got the following issue.
Exception: Parameters have not been assigned to all angles. Total system angles: 33, Parameterized angles: 31

For now I have two questions: 1. How could I know which two angles didn't parameterized? 2. Once I know the exact angles how could I add the information or modify the '.xml' file and where is the references?

Additionally, There is also other questions about the Foyer website. In the subsection 'Validation of force field files' of reference section, the link 'XML schema definition' and 'syntax' are invalid nowadays.

I appreciate your time for these issues and regret any disruptiopn my massage may cause.

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