Dokuwiki for science

差分

この文書の現在のバージョンと選択したバージョンの差分を表示します。

この比較画面にリンクする

chem2_plugin [2013/01/27 03:15] (現在)
ライン 1: ライン 1:
 +**This is a beta version.**
 +
 +**Testing of this plugin will be appreciated.**
 +
 +
 +====== Chem plugin 2 ======
 +This dokuwiki plugin displays a formatted chemical formula and calculates molecular weight of a chemical or an amino-acid sequence. This is an extended version of the [[chem plugin]].
 +
 +  *{{computer:​source:​chem2.zip|chem2.zip (3KB)}}
 +    *syntax.php
 +    *ptable.txt ​ (periodic table)
 +    *aatable.txt (amino acids' chemical formula)
 +
 +
 +===== Examples=====
 +
 +**//​%%{{chem>​([flags]:​)[Chemicals or amino acids]}}%%//​**
 +
 +<float left>
 +**Wiki syntax**
 +<​code>​
 +// Default
 +{{chem>​C2H3O2}}
 +
 +// Formatted formula
 +{{chem>​f:​C2H3O2}}
 +
 +// Molecular weight (MW)
 +{{chem>​w:​C2H3O2}}
 +
 +// Formatted formula and MW
 +{{chem>​fw:​C2H3O2}}
 +
 +// - with charges
 +{{chem>​fw:​CH3COO-Na+}}
 +
 +// - with a bracket
 +{{chem>​(C6H6)2}}
 +
 +// - with brackets
 +{{chem>​fw:​((C6H6)2)5}}
 +
 +
 +// MW of polypeptide chain
 +{{chem>​aaw:​AlaAlaLysLys}}
 +
 +// Amino acid sequence (1-letter) and MW
 +{{chem>​aa1w:​AlaAlaLysLys}}
 +
 +// Amino acid sequence (3-letter) and MW
 +{{chem>​aa3w:​AlaAlaLysLys}}
 +
 +// All items with line-feeds
 +{{chem>​aa1fnw:​AlaAlaLysLys}}
 +</​code>​
 +</​float>​
 +<float left>
 +**Appearance**\\ ​
 +\\ 
 +{{chem>​C2H3O2}}
 +\\ \\ \\ 
 +{{chem>​f:​C2H3O2}}
 +\\ \\ 
 +{{chem>​w:​C2H3O2}}
 +\\ \\ \\ 
 +{{chem>​fw:​C2H3O2}}
 +\\ \\ \\ 
 +{{chem>​fw:​CH3COO-Na+}}
 +\\ \\ 
 +{{chem>​(C6H6)2}}
 +\\ \\ \\ 
 +{{chem>​fw:​((C6H6)2)5}}
 +\\ \\ \\ 
 +{{chem>​aaw:​AlaAlaLysLys}}
 +\\ \\ \\ 
 +{{chem>​aa1w:​AlaAlaLysLys}}
 +\\ \\ \\ 
 +{{chem>​aa3w:​AlaAlaLysLys}}
 +\\ \\ 
 +{{chem>​aa1fnw:​AlaAlaLysLys}}
 +</​float>​
 +<​clear/>​
 +^  Flag  | |
 +^  f  |  Display a **f**ormatted chemical formula or an amino-acid sequence ​ |
 +^  w  |  Calculate and display molecular **w**eight ​ |
 +^  aa  |  Calculate as an **a**mino-**a**cid sequence ​ |
 +^  1  |  Display amino-acid sequence with **1-letter** A.A.  |
 +^  3  |  Display amino-acid sequence with **3-letters** A.A.  |
 +^  n  |  Use a **n**ew line as a splitter ​ |