// =========================================================================== // This file, chapter.js, must be provided for each chapter.htm. // Each chapter.js file contains the settings and content for one chapter. // Each chapter should be in a separate directory (folder). // Each chapter directory should contain one and only one chapter.htm file. // // Lines beginning "//" are comments for authors. They are ignored by JTAT. // =========================================================================== // ========== SECTION I: PROVIDE SLIDERS? ============ // These control whether this Chapter has a Slab ("Cut") // slider, in addition to a Zoom slider, or neither. // You cannot have a Slab slider without also having the Zoom slider. // The label on the slab slider (typically "Cut" or "Slab") // is defined in _jsutil/config2.js showZoomSlider = true; showSlabSlider = false; // ========== SECTION II: CHAPTER TITLE, INTRODUCTION ============ // CHAPTER TITLE IS REQUIRED chapterTitle = 'Color Schemes: DRuMS'; // CHAPTER SUBTITLE IS OPTIONAL chapterSubtitle = ''; // OPTIONAL INTRODUCTION FOR THIS CHAPTER // Be sure to include paragraphs within

tags. This gives them margins. chapterIntro = '

\n\ \n\ Careful selection of colors can help your structural views communicate \n\ effectively, and enhance their attractiveness. Except when there are \n\ compelling reasons to do otherwise, we recommend that you use the standard \n\ color schemes built into JTAT, which are based upon a standard named \n\ DRuMS. \n\ Below are examples illustrating these color schemes. \n\ \n\

\n\ \n\ JTAT makes it easy to use these color schemes by providing scripts to \n\ color your molecules, ready-made color keys to explain your molecular \n\ views, and style sheets so you can apply the standard colors to text by \n\ naming them. For details on how to use these, please see the \n\ Instructions for Authors. \n\ \n\ <\/p> \n\ '; // ========== SECTION III: NAVIGATION (NEXT, PREVIOUS, CONTENTS, RESET) ============ // The 3 URL's below must be relative to the current chapter. // The position and style of the navigation bar are set in config.js // Leave blank if there is only one chapter, and no contents page. contentsButtonGoesTo = "../contents/contents.htm"; // If the View buttons define the orientation/zoom, // no Reset button is needed, so provideResetButton should be false. // In contrast, some chapters are designed to maintain the orientation and // zoom set previously by the user when a new view is displayed. // These need a Reset button, so provideResetButton should be true. // When provided, a Reset button runs reset.spt in the chapter's directory. // It allows Reset to do something different than the "View 1" button does. provideResetButton = false; // ignored when isContents. // Leave blank if this is the first chapter. previousChapterButtonGoesTo = "../ch_spin/chapter.htm"; // Leave blank if this is the last chapter. nextChapterButtonGoesTo = "../ch_bkg/contents.htm"; // ========== SECTION IV: MOLECULAR VIEW BUTTONS ============ // Molecular View Button ===== ===== ===== ===== ===== ===== ===== ===== ===== setupButton(1, // NUMBER OF MOLECULES "../molecules4all/1s0v_2.mmol", // ATOMIC COORDINATE FILE "script view01.spt;", // VIEW SCRIPT blackBackground, // BACKGROUND (blackBackground or whiteBackground) spinningStart); // SPINNING (spinningStart/On/Same/Off) // MOLECULAR VIEW DESCRIPTION buttons[buttonNumber][iButtonText] = 'Composition: ' + composition_key(".") + '
\n\

\n\ Script: script ../../_drums/composition.spt \n\
\n\ Color Key: composition_key(".") \n\

\n\ '; // MOLECULAR VIEW DETAILS buttons[buttonNumber][iDetailsTitle] = 'What Is This?'; buttons[buttonNumber][iDetailsText] = 'Not very many molecules in the \n\ Protein Data Bank \n\ have all five of protein, DNA, RNA, ligand, and solvent. This one \n\ is bacteriophage \n\ T7 DNA-dependent RNA polymerase. \n\ In this crystal structure, the \n\ asymmetric unit \n\ contained four copies. Shown here is \n\ copy 2, \n\ separated by \n\ EBI\'s Probable Quaternary Structure Server. \n\ '; // Molecular View Button ===== ===== ===== ===== ===== ===== ===== ===== ===== setupButton(1, // NUMBER OF MOLECULES "../molecules4all/1acf.pdb.gz", // ATOMIC COORDINATE FILE "script view02.spt;", // VIEW SCRIPT blackBackground, // BACKGROUND (blackBackground or whiteBackground) spinningSame); // SPINNING (spinningStart/On/Same/Off) // MOLECULAR VIEW DESCRIPTION buttons[buttonNumber][iButtonText] = 'Secondary Structure: ' + sst_key(".") + '

\n\ Script: color structure \n\
\n\ Color Key (with Turn): sst_key(".") \n\
\n\ Color Key (witout Turn): ss_key(".") \n\

\n\ '; // MOLECULAR VIEW DETAILS buttons[buttonNumber][iDetailsTitle] = 'Profilin; Turns?'; buttons[buttonNumber][iDetailsText] = 'The molecule shown here is profilin \n\ (1acf), \n\ an actin-binding protein involved in microfilament dyanamics. \n\ It is unusual that the authors of this model designated the \n\ turns. While it is routine for authors \n\ of protein models to designate alpha helices\n\ and beta strands, turns \n\ are specified in only about 4% of models in the PDB. Jmol shows \n\ secondary structure according to the HELIX, SHEET, and TURN records \n\ placed in the PDB file header by its authors. As of summer, 2008, \n\ Jmol\'s internal calculation of secondary structure is flawed. The best \n\ way to color turns in models lacking TURN records is to add such records. \n\ '; // Molecular View Button ===== ===== ===== ===== ===== ===== ===== ===== ===== setupButton(1, // NUMBER OF MOLECULES "../molecules4all/1r3j_opm.pdb", // ATOMIC COORDINATE FILE "script view03.spt;", // VIEW SCRIPT blackBackground, // BACKGROUND (blackBackground or whiteBackground) spinningSame); // SPINNING (spinningStart/On/Same/Off) // MOLECULAR VIEW DESCRIPTION buttons[buttonNumber][iButtonText] = 'Potassium channel (1r3j): \n\

\n\ ' + polarity2_key(".") + '

\n\ Script: script ../../_drums/polarity2.spt \n\
\n\ Color Key: polarity2_key(".") \n\

\n\ '; // Molecular View Button ===== ===== ===== ===== ===== ===== ===== ===== ===== setupButton(1, // NUMBER OF MOLECULES "../molecules4all/1r3j_opm.pdb", // ATOMIC COORDINATE FILE "script view04.spt;", // VIEW SCRIPT blackBackground, // BACKGROUND (blackBackground or whiteBackground) spinningSame); // SPINNING (spinningStart/On/Same/Off) // MOLECULAR VIEW DESCRIPTION buttons[buttonNumber][iButtonText] = 'Potassium channel (1r3j) showing how the extensive hydrophobic \n\ region encircling the molecule fits between the predicted \n\ extracellular and \n\ intracellular lipid membrane/water boundaries. \n\ '; // MOLECULAR VIEW DETAILS buttons[buttonNumber][iDetailsTitle] = 'Membrane Planes'; buttons[buttonNumber][iDetailsText] = 'Prediction of the membrane planes was done by the Orientations \n\ of Proteins in Membranes (OPM) Server, courtesy of the University \n\ of Michigan. This model, containing pseudo-atoms representing the \n\ predicted membrane planes, was downloaded from \n\ OPM\'s page on the potassium channel. \n\ '; // TEXT AFTER MOLECULAR VIEW DESCRIPTION buttons[buttonNumber][iPostButtonText] = '
\n\ For instructions on how to apply \n\ arbitrary \n\ colors \n\ to text, please see the \n\ Instructions for Authors. \n\ '; // Molecular View Button ===== ===== ===== ===== ===== ===== ===== ===== ===== setupButton(1, // NUMBER OF MOLECULES "../molecules4all/1d66.pdb", // ATOMIC COORDINATE FILE "script view03.spt;", // VIEW SCRIPT blackBackground, // BACKGROUND (blackBackground or whiteBackground) spinningOff); // SPINNING (spinningStart/On/Same/Off) // MOLECULAR VIEW DESCRIPTION buttons[buttonNumber][iButtonText] = 'This view will always start out NOT spinning. \ This is useful when the author wants to show a particular perspective. \ In the perspective shown here, the major and minor grooves in the DNA \ double helix can be distinguished along the top of the DNA. \ '; // MOLECULAR VIEW DETAILS buttons[buttonNumber][iDetailsTitle] = "Implementation.."; buttons[buttonNumber][iDetailsText] = 'The initial spinning status for each View \ button is specified with a parameter \ in the setupButton() function call. The parameter must be one of \ three options: spinningStart, spinningOn, spinningSame, or \ spinningOff. ' + noIdea + '\ '; // End of View Buttons ===== ===== ===== ===== ===== ===== ===== ===== ===== // CHAPTER CONCLUSION chapterConclusion = '

\n\ \n\ You should never put a spin on or spin off command in a \n\ Jmol command script (.spt file). Doing so would interfere with JTAT\'s \n\ spin controls. \n\ \n\ <\/p> \n\ '; // ========== END OF chapter.js ============