Negations

GSL allows you to exclude certain atoms from your selection using negation operators.

  • Syntax:

    not <query>
    

    Or:

    ! <query>
    
  • Examples:

    not name CA
    

    Selects all atoms not named CA.

    ! name CA
    

    Equivalent to the above.

    not resname POPE POPG
    

    Selects atoms not in residues named POPE or POPG.

    !Protein
    

    Selects atoms not in the group named "Protein".