Template:LBF digit910Table

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
 
(16 intermediate revisions by one user not shown)
Line 1: Line 1:
<!---9、10桁目のパターンを取得。セパレータは&--->
+
<noinclude>
 +
{{{1}}} ... 4,5桁目のIDを入力とし、3rd classのテーブルを作成
 +
</noinclude><!---9、10桁目のパターンを取得。セパレータは&--->
 
{{#def:digit910|
 
{{#def:digit910|
 
{{#lua:
 
{{#lua:
 
   local L = {};
 
   local L = {};
 
   local desc = {
 
   local desc = {
SC = "Straight-chain",
+
SC = "straight-chain",
BC = "Branched-chain",
+
BC = "branched-chain",
HP = "Hydroperoxy",
+
HP = "hydroperoxy",
HO = "Hydroxy and alcoholic",
+
HO = "hydroxy and alcoholic",
OX = "Oxo",
+
OX = "oxo",
EO = "Epoxy",
+
EO = "epoxy",
MO = "Methoxy",
+
MO = "methoxy",
CA = "Carboxylic",
+
CA = "carboxylic",
OP = "12-oxo-phytodienoic",
+
--- OP = "12-oxo-phytodienoic",
JA = "Jasmonic",
+
JA = "jasmonic related",
PG = "Prostaglandin",
+
PG = "prostaglandin",
LT = "Leukotriene",
+
LT = "leukotriene",
TX = "Thromboxane",
+
TX = "thromboxane",
LX = "Lipoxin",
+
LX = "lipoxin",
HX = "Hepoxilin",
+
HX = "hepoxilin",
CV = "Clavulone",
+
CV = "clavulone",
AM = "Amide",
+
AM = "amide",
SF = "Sulfur containing",
+
SF = "sulfur containing",
PH = "Phosphate",
+
PH = "phosphate",
XX = "Others"
+
XX = "others"
 
};
 
};
 
   local c;
 
   local c;
 
   for id in stdin:gmatch("%S+") do
 
   for id in stdin:gmatch("%S+") do
     c = string.sub(id,5,6);
+
     c = string.sub(id,4,5);
 
     id = string.sub(id,9,10);
 
     id = string.sub(id,9,10);
 
     if (L[id] == nil) then L[id] = id end
 
     if (L[id] == nil) then L[id] = id end
 
   end
 
   end
 
   for k,v in pairs(L) do
 
   for k,v in pairs(L) do
    print("&"..c .. "&" .. v .. "&");
 
 
     if (desc[v] ~= nil)
 
     if (desc[v] ~= nil)
       then print(desc[v]); end
+
       then p = desc[v] else p = "<span style=\"color:red\">?"..v.."?</span>"
 +
    end
 +
    print("&"..c .. "&" .. v .. "&" .. p);
 
   end
 
   end
|{{#SearchTitle:LBFA{{{1|}}}|}} }}
+
| {{#SearchTitle:LBF{{{1|}}}|}} }}
 
}}
 
}}
  
{{#var:digit910}}
 
  
 
<!---各パターンについてテーブルを作成--->
 
<!---各パターンについてテーブルを作成--->
 
  {| class="collapsible collapsed" border="1" cellspacing="0" width="150"
 
  {| class="collapsible collapsed" border="1" cellspacing="0" width="150"
 
  |-
 
  |-
  ! colspan="2"|3rd Class
+
  ! colspan="2"|Structure
{{#repeat:LBFA_digit910Table/Row|3|{{#var:digit910}}}}
+
{{#repeatnum:LBF_digit910Table/Row|3|{{#cdr:{{#var:digit910}}|&}} |&}}
 
  |}
 
  |}

Latest revision as of 12:09, 1 October 2008

{{{1}}} ... 4,5桁目のIDを入力とし、3rd classのテーブルを作成



Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox