Topology does not have beads of type "A"

43 views
Skip to first unread message

shu zong

unread,
Nov 27, 2023, 9:29:59 AM11/27/23
to votca
Dear teacher, hello. I was calculating the propane example, and I ran into a problem. The "Topology does not have beads of type "A" "error occurs when calculating the RDF of the objective function. Please help me to see if there is something wrong with the xml and top files
微信图片_20231127222044.png微信图片_20231127222126.png微信图片_20231127222204.png

Christoph Junghans

unread,
Nov 27, 2023, 2:36:14 PM11/27/23
to vo...@googlegroups.com
On Mon, Nov 27, 2023 at 7:30 AM shu zong <qingc...@gmail.com> wrote:
Dear teacher, hello. I was calculating the propane example, and I ran into a problem. The "Topology does not have beads of type "A" "error occurs when calculating the RDF of the objective function. Please help me to see if there is something wrong with the xml and top files
微信图片_20231127222044.png微信图片_20231127222126.png微信图片_20231127222204.png
I think you are mixing two things up!

Your gromacs topology is at the coarse-grained level, but your mapping file is for the atomistic level.

An example for everything atomistic can be found here: 
an example for everything coarse-grained is here:

Christoph

PS: please do NOT put screenshots in the email, they are not searchable and hence won't be very useful for other users with a similar issue.
Instead, attach the input files and copy error messages into the email directly.

--
Join us on Slack: https://join.slack.com/t/votca/signup
---
You received this message because you are subscribed to the Google Groups "votca" group.
To unsubscribe from this group and stop receiving emails from it, send an email to votca+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/votca/0b8530bb-bd5e-4d6d-a1f2-b26ccc680ec1n%40googlegroups.com.


--
Christoph Junghans
Web: http://www.compphys.de

shu zong

unread,
Nov 28, 2023, 7:56:50 AM11/28/23
to votca
Thank you very much for your reply. 
Through the teacher's explanation, I realized my mistake. The command I used earlier was "csg_stat --top topol.tpr --trj traj.trr --cg propane.xml --options settings.xml", Among them, topol.tpr and traj.trr are atomic files.
 Now I convert the trace file traj.trr with the command "csg_map --top topol.tpr --trj traj.trr --cg propane.xml --out traj_cg.trr". 
But when I use "csg_stat --top topol.tpr --trj traj_cg.trr --cg propane.xml --options settings.xml" again, I still say that the top file is faulty.

The problem is "to begin to calculate distribution functions
# of bonded interactions: 0
# of non-bonded interactions: 3
Reading file topol.tpr, VERSION 2020.1 (single precision)
I have 11000 beads in 1000 molecules
I have 3000 beads in 1000 molecules for the coarsegraining
trr version: GMX_trn_file (double precision)
Reading frame 0 time 0.000
an error occurred:
number of beads in trajectory do not match topology
"
My top file is still the email from Creep
微信图片_20231128205415.png

Christoph Junghans

unread,
Nov 28, 2023, 11:18:22 AM11/28/23
to vo...@googlegroups.com
On Tue, Nov 28, 2023 at 5:56 AM shu zong <qingc...@gmail.com> wrote:
Thank you very much for your reply. 
Through the teacher's explanation, I realized my mistake. The command I used earlier was "csg_stat --top topol.tpr --trj traj.trr --cg propane.xml --options settings.xml", Among them, topol.tpr and traj.trr are atomic files.
 Now I convert the trace file traj.trr with the command "csg_map --top topol.tpr --trj traj.trr --cg propane.xml --out traj_cg.trr". 
But when I use "csg_stat --top topol.tpr --trj traj_cg.trr --cg propane.xml --options settings.xml" again, I still say that the top file is faulty.
With a mapping file, please use the atomistic topology and trajectory here, e.g.:
$ csg_stat --top topol.tpr --trj traj.trr --cg propane.xml --options settings.xml

Christoph

shu zong

unread,
Nov 30, 2023, 2:48:06 AM11/30/23
to votca

Thank you very much for your reply. The first email I sent was with this command, "csg_stat --top topol.tpr --trj traj.trr --cg propane.xml --options settings.xml." However, the "Topology does not have beads of type "A" "error is displayed。

I'm using this example.
 an example for everything coarse-grained is here:

test/ibi$ csg_stat --top topol.tpr --trj traj.trr --cg propane.xml --options settings.xml

begin to calculate distribution functions
# of bonded interactions: 0
# of non-bonded interactions: 3
Reading file topol.tpr, VERSION 2020.1 (single precision)
I have 11000 beads in 1000 molecules
I have 3000 beads in 1000 molecules for the coarsegraining
trr version: GMX_trn_file (single precision)

Reading frame       0 time    0.000  
an error occurred:
Topology does not have beads of type "A"
This was specified in type1 of interaction "A-A"
xuqch@chasing:~/simulation/Xuqch/test/ibi$ 

Christoph Junghans

unread,
Nov 30, 2023, 9:26:01 AM11/30/23
to vo...@googlegroups.com
On Thu, Nov 30, 2023 at 12:48 AM shu zong <qingc...@gmail.com> wrote:

Thank you very much for your reply. The first email I sent was with this command, "csg_stat --top topol.tpr --trj traj.trr --cg propane.xml --options settings.xml." However, the "Topology does not have beads of type "A" "error is displayed。

I'm using this example.
 an example for everything coarse-grained is here:

test/ibi$ csg_stat --top topol.tpr --trj traj.trr --cg propane.xml --options settings.xml
This is an IBI tutorial, which is already on the coarse-grained level hence you don't need to specify a mapping file (--cg option) as there is nothing to map.
To run IBI just use csg_inverse (see run.sh).

See this tutorial on how to do IBI:

Christoph

 

shu zong

unread,
Dec 1, 2023, 8:50:25 AM12/1/23
to votca
Thank you very much for your reply. This issue has been successfully resolved, mainly with the inconsistency of the atomic names of several files. 
When I went to the next step to find ibi, a new problem arose.

“Fatal error:
The group cutoff scheme has been removed since GROMACS 2020. Please use the
Verlet cutoff scheme.

For more information and tips for troubleshooting, please check the GROMACS
website at http://www.gromacs.org/Documentation/Errors

# ERROR:                                                                                         # critical: 'gmx grompp -n index.ndx -f grompp.mdp -p topol.top -o topol.tpr -c conf.gro' failed #
# For details see the logfile /home/xuqch/simulation/Xuqch/test/ibi/inverse.log
How do I modify the mdp file?
Thank you very much

微信图片_20231201214814.png

Christoph Junghans

unread,
Dec 1, 2023, 9:26:03 AM12/1/23
to vo...@googlegroups.com
On Fri, Dec 1, 2023 at 6:50 AM shu zong <qingc...@gmail.com> wrote:
Thank you very much for your reply. This issue has been successfully resolved, mainly with the inconsistency of the atomic names of several files. 
To support other users, how did you fix it?
 
When I went to the next step to find ibi, a new problem arose.

“Fatal error:
The group cutoff scheme has been removed since GROMACS 2020. Please use the
Verlet cutoff scheme.

For more information and tips for troubleshooting, please check the GROMACS
website at http://www.gromacs.org/Documentation/Errors

# ERROR:                                                                                         # critical: 'gmx grompp -n index.ndx -f grompp.mdp -p topol.top -o topol.tpr -c conf.gro' failed #
# For details see the logfile /home/xuqch/simulation/Xuqch/test/ibi/inverse.log
How do I modify the mdp file?
Like I said in my email on Nov 2nd, for tabulated interactions you will need to use gromacs-2019.
Gromacs-2020, which you are using, doesn't support that feature anymore.
Alternatively you can lammps.  

shu zong

unread,
Dec 1, 2023, 9:59:39 AM12/1/23
to votca
I re-downloaded the 2019 version and it seems that the group is not recognized. 
Is it that I need to manually define groups A and B

“ Fatal error:
Group A referenced in the .mdp file was not found in the index file.
Group names must match either [moleculetype] names or custom index group
names, in which case you must supply an index file to the '-n' option
of grompp.


For more information and tips for troubleshooting, please check the GROMACS
website at http://www.gromacs.org/Documentation/Errors  ”

微信图片_20231201225909.png

Christoph Junghans

unread,
Dec 1, 2023, 10:27:35 AM12/1/23
to vo...@googlegroups.com
On Fri, Dec 1, 2023 at 7:59 AM shu zong <qingc...@gmail.com> wrote:
I re-downloaded the 2019 version and it seems that the group is not recognized. 
Is it that I need to manually define groups A and B
I am not sure what are trying to do, but if you run the tutorial csg_inverse (via run.sh), it will
run grompp with the index file (gmx grompp -n index.ndx .....) automatically

Christoph
Reply all
Reply to author
Forward
0 new messages