From: Giacomo Fiorin (
Date: Mon May 27 2019 - 10:05:02 CDT

You should try getting the fragment IDs from a selection and count them in

set all [atomselect top "all"]
llength [lsort -unique -integer [${all} get fragment]]

On Mon, May 27, 2019 at 7:22 AM MD Simulation <>

> Hello,
> I'm having some trouble figuring out how to get the number of fragments in
> a TCL script. Is this some mol or molinfo can handle?
> Thanks for the help!
> Stacey

Giacomo Fiorin
Associate Professor of Research, Temple University, Philadelphia, PA
Contractor, National Institutes of Health, Bethesda, MD