Help:Extension/ExMolFunctions

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Extension |author=K, Suwa |version=0.1 }} __TOC__ == Requirements == * [http://metabolomics.jp/data/jar/MolCalculator.jar MolCalculator.jar] * [http://metabolomics.jp/data...")
 
Line 6: Line 6:
 
__TOC__
 
__TOC__
  
 +
ExMolFunctionsはMol名前空間にMOLデータを保存すると、自動的に組成式、精密質量、平均質量、SMILESデータを計算し、ページに追加書き込みします。
  
 +
また、MOLデータから自動的に画像も生成し、ページ表示時に画像を差し込みます。ページ内には画像情報は書き込まれません。
 +
画像はID(ページ名).pngとID(ページ名)n.pngの二つが作成されますが、この二つの違いはn付き画像は、原子に番号が振ってあることです。
 +
 +
アップロードされたMOLファイルは、$egMolPathで指定されたディレクトリへID(ページ名)の頭4桁のディレクトリ内に保存されます。
  
  

Revision as of 10:44, 17 February 2011

Extension Information
Implementation
Description
Author(s)K, Suwa
Version0.1
MediaWiki
License
Hooks used
Token type

Contents


ExMolFunctionsはMol名前空間にMOLデータを保存すると、自動的に組成式、精密質量、平均質量、SMILESデータを計算し、ページに追加書き込みします。

また、MOLデータから自動的に画像も生成し、ページ表示時に画像を差し込みます。ページ内には画像情報は書き込まれません。 画像はID(ページ名).pngとID(ページ名)n.pngの二つが作成されますが、この二つの違いはn付き画像は、原子に番号が振ってあることです。

アップロードされたMOLファイルは、$egMolPathで指定されたディレクトリへID(ページ名)の頭4桁のディレクトリ内に保存されます。


Requirements

Download

versionsourcemd5OperationCheck version
0.1(March 13,2009)ExMolFunctions.phps
f5469c2ec82eb807747ba3c95e4ef650
1.11.1

Installtion

  1. Download the source code and rename it to ExMolFunctions.php.
  2. Place it in the extensions/ directory.
  3. 上記jarファイル二つをダウンロードし、適当な場所へ置いて下さい。
  4. Insert the follow lines to LocalSettings.php
    require_once( "$IP/extensions/ExMolFunctions.php" );
    $egMolCalculatorJar = 'path to MolCalculator.jar';
    $egMolImageJar = 'path to armDrawMetabolomics.jar';
    $egJavaBin = 'path to java binary';
    $egTmpPath = 'path to tmp directory';
    $egMolPath = 'MOLファイルを保存するディレクトリ';
    $wgExtraNamespaces = array( ...
       xxx => "Mol", xxx+1 => "Mol_Talk",
       ...
    );
    

    All is required.

    Use 100 or larger numbers for xxx.
Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox