How do I properly use a sequence of logic operators in gmx make_ndx? Is there a way of writing brackets?
Example: I’m trying to select certain atoms by name from all POPC molecules in my system. I have a group containing only the POPC molecules.
gmx make_ndx -f md.tpr -n index_analysis.ndx -o test_index.ndx << EOF
"POPC" & a C13 | a C14
EOF
takes all atoms with the name C13 from the POPC group or C14 atoms from my entire system!
How can I change the logic to: “POPC” & ( a C13 | a C14 )?
Also why does
"POPC" & a C13 | "POPC" & a C14
only output the last selection instead of linking them all with an (inclusive) OR?