import jalview.structure.AtomSpecModel;
import jalview.structure.StructureCommand;
import jalview.structure.StructureCommandI;
-import jalview.util.ColorUtils;
/**
* Routines for generating ChimeraX commands for Jalview/ChimeraX binding
public List<StructureCommandI> startNotifications(String uri)
{
List<StructureCommandI> cmds = new ArrayList<>();
- cmds.add(new StructureCommand("info notify start models prefix ModelChanged jalview url " + uri));
+ cmds.add(new StructureCommand("info notify start models jalview prefix ModelChanged url " + uri));
cmds.add(new StructureCommand("info notify start selection jalview prefix SelectionChanged url " + uri));
return cmds;
}
import jalview.gui.StructureViewer.ViewerType;
import jalview.io.DataSourceType;
import jalview.structure.AtomSpec;
-import jalview.structure.StructureCommand;
import jalview.structure.StructureSelectionManager;
public class JalviewChimeraXBindingModel extends JalviewChimeraBindingModel
int modelNumber = chimeraMaps.size() + 1;
String command = "setattr #" + modelNumber + " models name "
+ pe.getId();
- executeCommand(new StructureCommand(command), false);
+ // FIXME reinstate this for ChimeraX 1.2, see https://plato.cgl.ucsf.edu/trac/ChimeraX/ticket/4211#comment:2
+ // executeCommand(new StructureCommand(command), false);
modelsToMap.add(new ChimeraModel(pe.getId(), ModelType.PDB_MODEL,
modelNumber, 0));
}
* @param atomSpec
* @return
*/
+ @Override
protected AtomSpec parseAtomSpec(String atomSpec)
{
return AtomSpec.fromChimeraXAtomspec(atomSpec);