CHARGE EXAMPLES: SEE LIST IN CHARGE HELP DEBUGGING A CHARGE HANG: If you interrupt the charges-getting process, loop looking for chargesGotten will hang unless you first comment out doViewLinkAfterEnds2(lnum); in doViewLinkAfterEnds(lnum) in jcontrol.js see charges-terminal.txt which lists ~ntermn, ~ntermhetn, ~ctermc, ~ctermo, ~ctermheto ------------------------------------------------------- FG 4.5: Stopped re-running getChainEnds() (modeldat.js) every time Ends or Charges requested. See jcontrol.js "get ends only once". Charges must be re-run on each request in order to omit hidden. ------------------------------------------------------- When Charges.. is clicked doViewLink() in jcontrol.js If noProteinHere() or simpDivisor>1, handled immediately when chargeNow. doViewLinkAfterEnds() getChainEnds()* is run if not previously run in the session. getCharges()* is run to count visible charges. now with endsGotten and chargeGotten, doViewLink() makeChargeHelp() makeChargeSpt() *The Charge.. display colors sidechains, and also charged ends of protein chains. Therefore, Ends must be gotten before Charge. Ends need be gotten only once, but visible charge counts need to be tallied every time in case different moieties are hidden. See also ENDS.TXT getCharges() (moltab.js) has CHARGE EXAMPLES (search for that) For HETERO END CHARGES, see moltab.js END EXAMPLES getCharges() (moltab.js) counts visible sidechain charges counts charged residues with incomplete sidechains getCharges2() (setTimeout to let progress help display) getAminoTermini() NTChargedChains/Seqnums, NTMissingChains, NTBlockedChains parses jmolEvaluate({...}.ident.all) getVisNTHetero() NT charges on stdAA monomers and dipeptides NTChargedHetChains/AANames/Seqnums getBlockedChains() (not charged or missing = NTBlockedChains) getCharges3() getVisOXTChains() gets ONLY OXT chains visOXTChains[] getVisCTHetero() NOT limited to Het with OXT CTChargedHetChains/AANames/Seqnums [getVisOXTHetero() is OBSOLETE] Probably still need getVisNTHetero() in makeChargeHelp() since Ends code is only processing named chains, excluding things less than trimers. In makeChargeHelp, for proteinChainsIntact, I seem to have forgotten to check for hiding of atoms with halos.