Find the Right Molecular Folder Before You Open It

When a SAMSON document contains many molecular systems, finding the one you need can turn into a slow cycle of expanding folders, inspecting structures, and trying to remember which system has the right size or composition. Folder attributes in the Node Specification Language (NSL) offer a more direct approach: search folders by what their structures contain.

Start with the question you need to answer

Folder queries are useful when you already have a practical filter in mind. For example: Is this system small enough for a quick test? Does it contain multiple chains? Am I looking for a folder with a particular number of residues? Instead of relying only on names, you can use counts and charge attributes to narrow the search.

Folder attributes use the f prefix. The examples below show the short forms, which make queries compact:

  • Find folders by atom count: f.nat < 1000 selects folders whose structures have fewer than 1,000 atoms. To focus on a size band, try f.nat 100:200.
  • Look for multi-chain systems: f.nc 2:4 matches folders with between 2 and 4 chains.
  • Filter by residue count: f.nr > 130 can help locate larger structures, while f.nr 100:130 focuses on a narrower range.
  • Check the number of molecules: f.nm < 3 is a useful starting point when you want folders containing fewer than 3 molecules.

These filters can help with everyday tasks such as locating a compact example system, finding a larger structure for analysis, or identifying folders that may warrant a closer look. They describe the folder’s structural contents; they do not tell you whether a structure is scientifically suitable for a particular experiment. Treat the results as a way to organize and inspect candidates, not as a substitute for validating them.

Use composition when size is not enough

Two folders can have similar atom counts but very different compositions. Element-specific attributes let you narrow the search further. For instance, f.nC < 10 searches for folders with fewer than 10 carbon atoms, and f.nO 10:20 looks for a range of oxygen counts. The same pattern applies to hydrogen (f.nH), nitrogen (f.nN), and sulfur (f.nS). If your workflow uses coarse-grained representations, f.ncga filters by the number of coarse-grained atoms.

There are also attributes for structural organization: f.ns for segments, f.nsg for structural groups, and f.nsm for structural models. For example, f.nsm > 4 matches folders with more than 4 structural models. These counts can help identify a folder’s general shape before you spend time inspecting it.

Check charge and folder state

When charge matters to your search, use f.fc for total formal charge or f.pc for total partial charge. For example, f.fc 6:8 filters by formal charge in that range, while f.pc 1.5:2.0 filters by partial charge. The documentation describes formal charge values as integers and partial charge values as real numbers.

You can also search inherited node properties. f.n "A" is an example of a name query, and f.h can check hidden state. The full name attribute also includes a pattern-style example, f.n "L*". One detail worth remembering: folders inherit the selected attribute, but it has no short name in the folder attribute space, so use f.selected rather than assuming a compact alias.

A practical search habit

Begin with one attribute that captures the biggest difference between the folders—often atom count, residue count, or molecule count. Then refine your search with composition, charge, or structural-model counts as needed. This keeps the selection process understandable: each query answers a specific question, and you can adjust the threshold when the result is too broad or too narrow. Check the matching folders in context before acting on them, especially when charge or atom counts are being used to distinguish candidate systems.

For the complete list of folder attributes, inherited properties, and examples, see the SAMSON folder attributes reference.

Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.

Comments are closed.