Template:LBF digit910Table
From Metabolomics.JP
(Difference between revisions)
| (20 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 = " | + | SC = "straight-chain", |
| − | BC = " | + | BC = "branched-chain", |
| − | HP = " | + | HP = "hydroperoxy", |
| − | HO = " | + | HO = "hydroxy and alcoholic", |
| − | OX = " | + | OX = "oxo", |
| − | EO = " | + | EO = "epoxy", |
| − | MO = " | + | MO = "methoxy", |
| − | CA = " | + | CA = "carboxylic", |
| − | OP = "12-oxo-phytodienoic", | + | --- OP = "12-oxo-phytodienoic", |
| − | JA = " | + | JA = "jasmonic related", |
| − | PG = " | + | PG = "prostaglandin", |
| − | LT = " | + | LT = "leukotriene", |
| − | TX = " | + | TX = "thromboxane", |
| − | LX = " | + | LX = "lipoxin", |
| − | HX = " | + | HX = "hepoxilin", |
| − | CV = " | + | CV = "clavulone", |
| − | AM = " | + | AM = "amide", |
| − | SF = " | + | SF = "sulfur containing", |
| − | PH = " | + | PH = "phosphate", |
| − | XX = " | + | XX = "others" |
}; | }; | ||
local c; | local c; | ||
for id in stdin:gmatch("%S+") do | for id in stdin:gmatch("%S+") do | ||
| − | + | c = string.sub(id,4,5); | |
| − | c = string. | + | id = string.sub(id,9,10); |
| − | id = string. | + | |
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) |
| + | then p = desc[v] else p = "<span style=\"color:red\">?"..v.."?</span>" | ||
| + | end | ||
| + | print("&"..c .. "&" .. v .. "&" .. p); | ||
end | end | ||
| − | |{{#SearchTitle: | + | | {{#SearchTitle:LBF{{{1|}}}|}} }} |
}} | }} | ||
| − | |||
<!---各パターンについてテーブルを作成---> | <!---各パターンについてテーブルを作成---> | ||
{| class="collapsible collapsed" border="1" cellspacing="0" width="150" | {| class="collapsible collapsed" border="1" cellspacing="0" width="150" | ||
|- | |- | ||
| − | ! colspan="2"| | + | ! colspan="2"|Structure |
| − | {{# | + | {{#repeatnum:LBF_digit910Table/Row|3|{{#cdr:{{#var:digit910}}|&}} |&}} |
|} | |} | ||
Latest revision as of 12:09, 1 October 2008
{{{1}}} ... 4,5桁目のIDを入力とし、3rd classのテーブルを作成
| Structure | |
|---|---|