Dokuwiki for science

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.

    • syntax.php
    • ptable.txt (periodic table)
    • aatable.txt (amino acids' chemical formula)

Examples

{{chem>([flags]:)[Chemicals or amino acids]}}

<float left> Wiki syntax

// 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}}

</float> <float left> Appearance

search?q=C2H3O2&amp;btnI=lucky


search?q=f%3AC2H3O2&amp;btnI=lucky

search?q=w%3AC2H3O2&amp;btnI=lucky


search?q=fw%3AC2H3O2&amp;btnI=lucky


search?q=fw%3ACH3COO-Na%2B&amp;btnI=lucky

search?q=%28C6H6%292&amp;btnI=lucky


search?q=fw%3A%28%28C6H6%292%295&amp;btnI=lucky


search?q=aaw%3AAlaAlaLysLys&amp;btnI=lucky


search?q=aa1w%3AAlaAlaLysLys&amp;btnI=lucky


search?q=aa3w%3AAlaAlaLysLys&amp;btnI=lucky

search?q=aa1fnw%3AAlaAlaLysLys&amp;btnI=lucky </float> <clear/>

Flag
f Display a formatted chemical formula or an amino-acid sequence
w Calculate and display molecular weight
aa Calculate as an amino-acid sequence
1 Display amino-acid sequence with 1-letter A.A.
3 Display amino-acid sequence with 3-letters A.A.
n Use a new line as a splitter