@Override
public StructureCommandI hideChain(String modelId, String chainId)
{
- String cmd = "~ribbon #" + modelId + ":." + chainId;
- return new StructureCommand(cmd);
+ String what = "#" + modelId + ":." + chainId;
+ return new StructureCommand("~ribbon " + what + ";~display " + what);
}
@Override
@Override
public StructureCommandI hideChain(String modelId, String chainId)
{
- String cmd = "~ribbon #" + modelId + "/" + chainId;
+ // https://www.cgl.ucsf.edu/chimerax/docs/user/commands/show.html
+ String cmd = "hide #" + modelId + "/" + chainId + " target acr";
return new StructureCommand(cmd);
}
public void testHideChain()
{
StructureCommandI cmd = testee.hideChain("1.1", "B");
- assertEquals(cmd.getCommand(), "~ribbon #1.1:.B");
+ assertEquals(cmd.getCommand(), "~ribbon #1.1:.B;~display #1.1:.B");
}
@Test(groups = "Functional")
public void testHideChain()
{
StructureCommandI cmd = testee.hideChain("1.1", "B");
- assertEquals(cmd.getCommand(), "~ribbon #1.1/B");
+ assertEquals(cmd.getCommand(), "hide #1.1/B target acr");
}
@Test(groups = "Functional")