X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fext%2Fpymol%2FPymolCommands.java;h=49c4ec6503469fd436f5aaf0e166031302b00ee1;hb=57738a1f3c19b1c3a00bd3ac5108f8cd0af32f99;hp=b69d3e390c4007d0141da778d972da55e187518f;hpb=e7338a61f3ce96dadf44ac80b2b32cc5ba4b94c8;p=jalview.git diff --git a/src/jalview/ext/pymol/PymolCommands.java b/src/jalview/ext/pymol/PymolCommands.java index b69d3e3..49c4ec6 100644 --- a/src/jalview/ext/pymol/PymolCommands.java +++ b/src/jalview/ext/pymol/PymolCommands.java @@ -108,18 +108,20 @@ public class PymolCommands extends StructureCommandsBase public List superposeStructures(AtomSpecModel refAtoms, AtomSpecModel atomSpec, AtomSpecType specType) { - + // https://pymolwiki.org/index.php/Super List commands = new ArrayList<>(); - String refAtomsAlphaOnly = "("+getAtomSpec(refAtoms, specType)+" and (altloc '' or altloc 'a'))"; - String atomSpec2AlphaOnly = "("+getAtomSpec(atomSpec, specType)+" and (altloc '' or altloc 'a'))"; + String refAtomsAlphaOnly = "(" + getAtomSpec(refAtoms, specType) + + " and (altloc '' or altloc 'a'))"; + String atomSpec2AlphaOnly = "(" + getAtomSpec(atomSpec, specType) + + " and (altloc '' or altloc 'a'))"; // pair_fit mobile -> reference // crashes when undo is enabled on 2.5.2 (incentive) commands.add(new StructureCommand("undo_disable")); - commands.add(new StructureCommand("pair_fit", - atomSpec2AlphaOnly, refAtomsAlphaOnly)); + commands.add(new StructureCommand("pair_fit", atomSpec2AlphaOnly, + refAtomsAlphaOnly)); commands.add(new StructureCommand("undo_enable")); - + /* * and show superposed residues as cartoon */