I work with photochemical reaction centers (like Photosystems I & II) and it can be helpful to use PyMol to create useful pictures of them. With these proteins, the chlorophylls do all the work, so it is often these cofactors that are the center of attention. However, chlorophylls have lengthy phytyl tails that can make these depictions crowded, so scientists will selectively remove these tails in PyMol and opt for a depiction that only shows the porphyrin ring/ central Mg atom.
I'm having trouble selecting the atoms I want to remove from these cofactors and hiding them. I recall a coworker selecting the atoms within a cofactor by number but I cannot remember how he did it. I need to be able to do this with all the chlorophylls in the protein (there are ~60) so I can't do them 1 at a time. I need to write script. Unfortunately, I am very new to using PyMol. Help!