function setupJmolCheckbox(whenChecked, whenUnchecked, labelHtml, startsChecked) { var cdoc = _jmol.currentDocument; _jmol.currentDocument = false; var chtml = jmolCheckbox(whenChecked, whenUnchecked, labelHtml, startsChecked); _jmol.currentDocument = cdoc; return chtml; } // =========================================================================== // 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\ ' + setupJmolCheckbox("select protein; spacefill;", "select protein; spacefill off;", "Protein", true) + '
\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 (1s0v). \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\ ' + polarity2_key(".") + '
\n\
Script: script ../../_drums/polarity2.spt \n\
\n\
Color Key: polarity2_key(".") \n\
\n\ ' + aacharge_key(", ") + dna_key(".") + '
\n\ \n\
Script: script ../../_drums/aacharge.spt \n\
\n\
Color Keys: aacharge_key(", ") + dna_key(".") \n\
\n\ Please notice that the protein surface contacting the \n\ DNA has only \n\ positive charges, complementing \n\ the negatively charged phosphate backbone of the \n\ DNA. \n\
\n\ '; // MOLECULAR VIEW DETAILS buttons[buttonNumber][iDetailsTitle] = 'Entire sidechains'; buttons[buttonNumber][iDetailsText] = ' \n\ Entire sidechains are colored because quite often, the charged \n\ atoms at the ends of sidechains are missing due to disorder in the protein crysal. \n\\n\ ' + polarity4_key(", ") + dna_key(".") + '
\n\ \n\
Script: script ../../_drums/polarity4.spt \n\
\n\
Color Keys: polarity4_key(", ") + dna_key(".") \n\
\n\ ' + polarity5_key(", ") + dna_key(".") + '
\n\ \n\
Script: script ../../_drums/polarity5.spt \n\
\n\
Color Keys: polarity5_key(", ") + dna_key(".") \n\
polar, uncharged, is given a distinct color \n\ because most of its hydrogen bonding needs are met internally by \n\ secondary structure interactions. Therefore, on average, it is less available \n\ for hydrogen bonding with non-backbone atoms than are polar sidechain atoms. \n\ \n\ '; // TEXT AFTER MOLECULAR VIEW DESCRIPTION buttons[buttonNumber][iPostButtonText] = ''; // Molecular View Button ===== ===== ===== ===== ===== ===== ===== ===== ===== setupButton(1, // NUMBER OF MOLECULES "../molecules4all/1s0v_2.mmol", // ATOMIC COORDINATE FILE "script view08.spt;", // VIEW SCRIPT blackBackground, // BACKGROUND (blackBackground or whiteBackground) spinningSame); // SPINNING (spinningStart/On/Same/Off) // MOLECULAR VIEW DESCRIPTION buttons[buttonNumber][iButtonText] = 'Nucleic acid sequence: \n\
\n\ ' + nucbases_key(".") + '
\n\ \n\
Script: script ../../_drums/nucbases.spt \n\
\n\
Color Key: nucbases_key(".") \n\
\n\ This view shows only the DNA and RNA from the T7 polymerase shown \n\ in View 1 (1s0v). Can you tell which chain is RNA? (Look for the \n\ single Uracil.) \n\
\n\ '; // Molecular View Button ===== ===== ===== ===== ===== ===== ===== ===== ===== setupButton(1, // NUMBER OF MOLECULES "../molecules4all/1s0v_2.mmol", // ATOMIC COORDINATE FILE "script view09.spt;", // VIEW SCRIPT blackBackground, // BACKGROUND (blackBackground or whiteBackground) spinningSame); // SPINNING (spinningStart/On/Same/Off) // MOLECULAR VIEW DESCRIPTION buttons[buttonNumber][iButtonText] = 'Nucleic acid base sequence vs. backbone: \n\\n\ ' + nucbasesbb_key(".") + '
\n\ \n\
Script: script ../../_drums/nucbasesbb.spt \n\
\n\
Color Key: nucbasesbb_key(".") \n\
\n\ ' + purpyr_key(".") + '
\n\ \n\
Script: script ../../_drums/purpyr.spt \n\
\n\
Color Key: purpyr_key(".") \n\
\n\ ' + purpyrbb_key(".") + '
\n\ \n\
Script: script ../../_drums/purpyrbb.spt \n\
\n\
Color Key: purpyrbb_key(".") \n\