<?xml version="1.0"?>
  <ChimeraPuppet type="std_webdata">
<web_files>
<file  name="isd_pdb1rtt_view_ConSurf.pdb" format="text" loc="http://www.cgl.ucsf.edu/chimera/consurf/isd_pdb1rtt_view_ConSurf.pdb"/>
<file  name="pdb1rtt.aln" format="text" loc="http://www.cgl.ucsf.edu/chimera/consurf/pdb1rtt.aln"/>
</web_files>
<commands>
  <mid_cmd>preset apply pub 3;repr cpk;show;focus</mid_cmd>

<!-- the following 3 lines locate the Multalign Viewer instance
	that was created by opening the alignment file, and stores a reference
	to the instance as the variable 'mav' -->
  <py_cmd>from MultAlignViewer.MAViewer import MAViewer</py_cmd>
  <py_cmd>from chimera.extension import manager</py_cmd>
  <py_cmd>mav = [inst for inst in manager.instances if isinstance(inst, MAViewer)][-1]</py_cmd>
<!-- read in/show Consurf tree -->

<!-- hide initial headers, show phylogeny tree, load the coloring file,
	and make residue letters black.
	This uses two possible sets of calls:  one for the 1.2540 release
	and one for later versions that uses a better API.
	The 'if' condition guarantees that the code will work no
	matter what version the user has -->
<py_cmd>
if hasattr(mav, 'loadScfFile'):
	mav.hideHeaders(mav.headers(shownOnly=True))
	mav.usePhylogenyFile("http://www.cgl.ucsf.edu/chimera/consurf/TheTree.txt", askReorder=False)
	mav.loadScfFile("http://www.cgl.ucsf.edu/chimera/consurf/pdb1rtt_isd.scf")
	mav.useColoringFile(None)
else:
	mav.hideHeaders(mav.seqCanvas.headerDisplayOrder())
	mav.usePhylogenyFile("http://www.cgl.ucsf.edu/chimera/consurf/TheTree.txt")
	mav.regionBrowser.loadScfFile("http://www.cgl.ucsf.edu/chimera/consurf/pdb1rtt_isd.scf")
	from MultAlignViewer.prefs import RC_BLACK
	mav.seqCanvas.setColorFunc(RC_BLACK)
</py_cmd>
<!-- read in/show Consurf headers -->
	<py_cmd>mav.readHeaderFile("http://www.cgl.ucsf.edu/chimera/consurf/pdb1rtt_isd.hdr")</py_cmd>

  </commands>
</ChimeraPuppet>