Sandbox: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 16: | Line 16: | ||
for ref, sp, id in stdin:gmatch("&?&?([%w\. ]+)&&([%w\., ]+)&&([^\n]+)") do | for ref, sp, id in stdin:gmatch("&?&?([%w\. ]+)&&([%w\., ]+)&&([^\n]+)") do | ||
if (string.match(sp,"Aeropyrum") or string.match(sp,"Desulfurococcus") or string.match(sp,"Pyrolobus")) | if (string.match(sp,"Aeropyrum") or string.match(sp,"Desulfurococcus") or string.match(sp,"Pyrolobus")) | ||
then desulfurococcales[ string.byte(id,4) ] = true print(id) | then desulfurococcales[ string.byte(id,4) ] = true print(id) | ||
else if (string.match(sp,"Acidianus") or string.match(sp,"Sulfolobus")) | else if (string.match(sp,"Acidianus") or string.match(sp,"Sulfolobus")) | ||
then sulfolobales[ string.byte(id,4) ] = true | then sulfolobales[ string.byte(id,4) ] = true | ||
else if (string.match(sp,"Pyrobaculum") or string.match(sp,"Thermoproteus")) | else if (string.match(sp,"Pyrobaculum") or string.match(sp,"Thermoproteus")) | ||
then thermoproteales[ string.byte(id,4) ] = true | then thermoproteales[ string.byte(id,4) ] = true | ||
else if (string.match(sp,"Pyrococcus") or string.match(sp,"Thermococcus")) | else if (string.match(sp,"Pyrococcus") or string.match(sp,"Thermococcus")) | ||
then thermococcales[ string.byte(id,4) ] = true | then thermococcales[ string.byte(id,4) ] = true | ||
else if (string.match(sp,"Thermoplasma")) | else if (string.match(sp,"Thermoplasma")) | ||
then thermoplasmatales[ string.byte(id,4) ] = true | then thermoplasmatales[ string.byte(id,4) ] = true | ||
else if (string.match(sp,"Haloarcula") or string.match(sp,"Halobacterium") or string.match(sp,"Halococcus") or string.match(sp,"Haloferax") or string.match(sp,"Halorubrum") or string.match(sp,"Natrialba") or string.match(sp,"Natronobacterium") or string.match(sp,"Natronococcus")) | else if (string.match(sp,"Haloarcula") or string.match(sp,"Halobacterium") or string.match(sp,"Halococcus") or string.match(sp,"Haloferax") or string.match(sp,"Halorubrum") or string.match(sp,"Natrialba") or string.match(sp,"Natronobacterium") or string.match(sp,"Natronococcus")) | ||
then halobacteriales[ string.byte(id,4) ] = true | then halobacteriales[ string.byte(id,4) ] = true | ||
else if (string.match(sp,"Methanobacterium") or string.match(sp,"Methanobrevibacter") or string.match(sp,"Methanosphaera") or string.match(sp,"Methanothermobacter")) | else if (string.match(sp,"Methanobacterium") or string.match(sp,"Methanobrevibacter") or string.match(sp,"Methanosphaera") or string.match(sp,"Methanothermobacter")) | ||
then methanobacteriales[ string.byte(id,4) ] = true | then methanobacteriales[ string.byte(id,4) ] = true | ||
else if (string.match(sp,"Methanothermococcus") or string.match(sp,"Methanococcus") or string.match(sp,"Methanocaldococcus")) | else if (string.match(sp,"Methanothermococcus") or string.match(sp,"Methanococcus") or string.match(sp,"Methanocaldococcus")) | ||
then methanococcales[ string.byte(id,4) ] = true | then methanococcales[ string.byte(id,4) ] = true | ||
else if (string.match(sp,"Methanomicrobium") or string.match(sp,"Methanospirillum")) | else if (string.match(sp,"Methanomicrobium") or string.match(sp,"Methanospirillum")) | ||
then methanomicrobiales[ string.byte(id,4) ] = true | then methanomicrobiales[ string.byte(id,4) ] = true | ||
else if (string.match(sp,"Methanopyrus")) | else if (string.match(sp,"Methanopyrus")) | ||
then methanopyrales[ string.byte(id,4) ] = true | then methanopyrales[ string.byte(id,4) ] = true | ||
else if (string.match(sp,"Methanococcoides") or string.match(sp,"Methanohalophilus") or string.match(sp,"Methanolobus") or string.match(sp,"Methanosarcina")) | else if (string.match(sp,"Methanococcoides") or string.match(sp,"Methanohalophilus") or string.match(sp,"Methanolobus") or string.match(sp,"Methanosarcina")) | ||
then methanosarcinales[ string.byte(id,4) ] = true | then methanosarcinales[ string.byte(id,4) ] = true | ||
end | end | ||
print(methanosarcinales) | print(methanosarcinales) |
Revision as of 10:17, 9 March 2013
Dmax
film foo
{{#lua:
desulfurococcales = {} sulfolobales ={} thermoproteales = {} thermococcales = {} thermoplasmatales = {} halobacteriales = {} methanobacteriales = {} methanococcales = {} methanomicrobiales = {} methanopyrales = {} methanosarcinales = {} for ref, sp, id in stdin:gmatch("&?&?([%w\. ]+)&&([%w\., ]+)&&([^\n]+)") do if (string.match(sp,"Aeropyrum") or string.match(sp,"Desulfurococcus") or string.match(sp,"Pyrolobus")) then desulfurococcales[ string.byte(id,4) ] = true print(id) else if (string.match(sp,"Acidianus") or string.match(sp,"Sulfolobus")) then sulfolobales[ string.byte(id,4) ] = true else if (string.match(sp,"Pyrobaculum") or string.match(sp,"Thermoproteus")) then thermoproteales[ string.byte(id,4) ] = true else if (string.match(sp,"Pyrococcus") or string.match(sp,"Thermococcus")) then thermococcales[ string.byte(id,4) ] = true else if (string.match(sp,"Thermoplasma")) then thermoplasmatales[ string.byte(id,4) ] = true else if (string.match(sp,"Haloarcula") or string.match(sp,"Halobacterium") or string.match(sp,"Halococcus") or string.match(sp,"Haloferax") or string.match(sp,"Halorubrum") or string.match(sp,"Natrialba") or string.match(sp,"Natronobacterium") or string.match(sp,"Natronococcus")) then halobacteriales[ string.byte(id,4) ] = true else if (string.match(sp,"Methanobacterium") or string.match(sp,"Methanobrevibacter") or string.match(sp,"Methanosphaera") or string.match(sp,"Methanothermobacter")) then methanobacteriales[ string.byte(id,4) ] = true else if (string.match(sp,"Methanothermococcus") or string.match(sp,"Methanococcus") or string.match(sp,"Methanocaldococcus")) then methanococcales[ string.byte(id,4) ] = true else if (string.match(sp,"Methanomicrobium") or string.match(sp,"Methanospirillum")) then methanomicrobiales[ string.byte(id,4) ] = true else if (string.match(sp,"Methanopyrus")) then methanopyrales[ string.byte(id,4) ] = true else if (string.match(sp,"Methanococcoides") or string.match(sp,"Methanohalophilus") or string.match(sp,"Methanolobus") or string.match(sp,"Methanosarcina")) then methanosarcinales[ string.byte(id,4) ] = true end print(methanosarcinales)
|
}}