rbbt-marq 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +20 -0
- data/R/CustomDS.R +80 -0
- data/R/GEO.R +249 -0
- data/R/MA.R +359 -0
- data/README.rdoc +58 -0
- data/bin/marq_config +209 -0
- data/install_scripts/CustomDS/Rakefile +223 -0
- data/install_scripts/GEO/Rakefile +272 -0
- data/install_scripts/GEO/platforms/GPL100.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1002.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1007.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL101.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1010.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1073.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1074.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL1090.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1104.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL118.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1205.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL1211.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1213.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1219.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL1223.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1226.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1229.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1230.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1231.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1232.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1260.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL1261.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL127.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL128.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1290.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1292.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1293.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1294.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1295.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL13.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL1310.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1313.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1323.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1331.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1352.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL1355.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL1382.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1387.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1397.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL14.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1412.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1415.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1420.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL144.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1449.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1458.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1523.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1524.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1528.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL153.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1530.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1535.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL155.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL163.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL168.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL169.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1704.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL1708.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1739.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1740.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL1749.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL177.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1790.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1792.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL181.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1818.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1820.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL1823.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1826.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL183.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1831.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1833.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1872.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL1911.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1914.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL1928.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1942.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1945.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL1964.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL198.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL1981.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL200.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL2006.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL201.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL2011.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL2026.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL205.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL207.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL2136.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL220.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL226.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL24.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL246.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL247.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL2507.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL2529.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL2531.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL254.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL2569.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL257.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL2598.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL260.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL2614.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL2622.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL2623.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL2660.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL2670.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL2677.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL2700.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL2721.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL2727.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL273.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL2763.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL2824.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL284.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL287.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL2872.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL288.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL2883.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL289.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL2895.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL2897.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL2902.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL2987.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL2995.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL3039.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL3050.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL3084.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL3113.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL317.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL319.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL32.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL3222.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL3295.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL3305.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL3306.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL3307.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL333.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL3341.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL3349.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL339.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL340.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL3408.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL341.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL3415.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL3423.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL3440.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL3457.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL3504.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL3506.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL355.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL3558.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL3607.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL368.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL3695.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL371.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL3834.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL4006.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL4055.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL409.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL4191.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL4226.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL4371.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL4567.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL4685.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL483.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL49.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL50.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL500.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL507.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL51.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL513.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL519.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL52.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL529.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL53.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL5356.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL538.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL54.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL543.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL544.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL545.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL546.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL547.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL549.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL550.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL56.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL560.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL564.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL57.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL570.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL571.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL576.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL58.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL5823.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL59.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL5915.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL5947.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL61.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL64.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL6419.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL6424.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL65.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL6574.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL6649.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL67.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL6720.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL7054.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL737.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL738.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL74.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL75.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL76.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL764.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL772.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL782.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL783.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL784.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL80.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL81.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL82.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL83.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL85.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL86.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL87.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL870.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL875.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL884.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL887.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL89.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL890.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL891.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL90.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL91.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL92.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL920.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL922.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL924.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL93.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL96.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL968.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL97.yaml +4 -0
- data/install_scripts/GEO/platforms/GPL98.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL981.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL99.yaml +7 -0
- data/install_scripts/GEO/platforms/GPL999.yaml +7 -0
- data/install_scripts/GEO/series/GSE10018.yaml +61 -0
- data/install_scripts/GEO/series/GSE1002.yaml +135 -0
- data/install_scripts/GEO/series/GSE10066.yaml +31 -0
- data/install_scripts/GEO/series/GSE10073.yaml +19 -0
- data/install_scripts/GEO/series/GSE10091.yaml +15 -0
- data/install_scripts/GEO/series/GSE101.yaml +17 -0
- data/install_scripts/GEO/series/GSE10100.yaml +15 -0
- data/install_scripts/GEO/series/GSE10101.yaml +15 -0
- data/install_scripts/GEO/series/GSE10102.yaml +15 -0
- data/install_scripts/GEO/series/GSE10267.yaml +37 -0
- data/install_scripts/GEO/series/GSE10268.yaml +115 -0
- data/install_scripts/GEO/series/GSE10279.yaml +23 -0
- data/install_scripts/GEO/series/GSE103.yaml +19 -0
- data/install_scripts/GEO/series/GSE104.yaml +19 -0
- data/install_scripts/GEO/series/GSE10514.yaml +27 -0
- data/install_scripts/GEO/series/GSE10521.yaml +56 -0
- data/install_scripts/GEO/series/GSE10554.yaml +19 -0
- data/install_scripts/GEO/series/GSE1073.yaml +127 -0
- data/install_scripts/GEO/series/GSE10860.yaml +25 -0
- data/install_scripts/GEO/series/GSE10930.yaml +15 -0
- data/install_scripts/GEO/series/GSE10933.yaml +15 -0
- data/install_scripts/GEO/series/GSE10944.yaml +21 -0
- data/install_scripts/GEO/series/GSE10947.yaml +21 -0
- data/install_scripts/GEO/series/GSE10948.yaml +21 -0
- data/install_scripts/GEO/series/GSE11061.yaml +19 -0
- data/install_scripts/GEO/series/GSE11071.yaml +67 -0
- data/install_scripts/GEO/series/GSE11111.yaml +25 -0
- data/install_scripts/GEO/series/GSE11236.yaml +25 -0
- data/install_scripts/GEO/series/GSE11282.yaml +19 -0
- data/install_scripts/GEO/series/GSE11377.yaml +19 -0
- data/install_scripts/GEO/series/GSE11380.yaml +13 -0
- data/install_scripts/GEO/series/GSE11397.yaml +55 -0
- data/install_scripts/GEO/series/GSE11412.yaml +11 -0
- data/install_scripts/GEO/series/GSE11452.yaml +354 -0
- data/install_scripts/GEO/series/GSE11620.yaml +33 -0
- data/install_scripts/GEO/series/GSE11621.yaml +31 -0
- data/install_scripts/GEO/series/GSE11651.yaml +94 -0
- data/install_scripts/GEO/series/GSE11754.yaml +29 -0
- data/install_scripts/GEO/series/GSE11799.yaml +59 -0
- data/install_scripts/GEO/series/GSE11856.yaml +11 -0
- data/install_scripts/GEO/series/GSE11878.yaml +19 -0
- data/install_scripts/GEO/series/GSE11983.yaml +15 -0
- data/install_scripts/GEO/series/GSE12004.yaml +41 -0
- data/install_scripts/GEO/series/GSE12055.yaml +109 -0
- data/install_scripts/GEO/series/GSE12061.yaml +13 -0
- data/install_scripts/GEO/series/GSE12104.yaml +10 -0
- data/install_scripts/GEO/series/GSE12138.yaml +13 -0
- data/install_scripts/GEO/series/GSE12150.yaml +32 -0
- data/install_scripts/GEO/series/GSE12684.yaml +47 -0
- data/install_scripts/GEO/series/GSE12685.yaml +34 -0
- data/install_scripts/GEO/series/GSE1365.yaml +14 -0
- data/install_scripts/GEO/series/GSE1404.yaml +596 -0
- data/install_scripts/GEO/series/GSE1492.yaml +15 -0
- data/install_scripts/GEO/series/GSE15222.yaml +731 -0
- data/install_scripts/GEO/series/GSE1553.yaml +23 -0
- data/install_scripts/GEO/series/GSE1617.yaml +39 -0
- data/install_scripts/GEO/series/GSE1688.yaml +36 -0
- data/install_scripts/GEO/series/GSE1693.yaml +60 -0
- data/install_scripts/GEO/series/GSE1752.yaml +32 -0
- data/install_scripts/GEO/series/GSE1753.yaml +16 -0
- data/install_scripts/GEO/series/GSE1754.yaml +19 -0
- data/install_scripts/GEO/series/GSE1758.yaml +15 -0
- data/install_scripts/GEO/series/GSE1759.yaml +18 -0
- data/install_scripts/GEO/series/GSE1760.yaml +18 -0
- data/install_scripts/GEO/series/GSE1763.yaml +19 -0
- data/install_scripts/GEO/series/GSE1915.yaml +39 -0
- data/install_scripts/GEO/series/GSE1927.yaml +14 -0
- data/install_scripts/GEO/series/GSE1941.yaml +23 -0
- data/install_scripts/GEO/series/GSE1942.yaml +31 -0
- data/install_scripts/GEO/series/GSE1944.yaml +58 -0
- data/install_scripts/GEO/series/GSE1975.yaml +65 -0
- data/install_scripts/GEO/series/GSE20.yaml +24 -0
- data/install_scripts/GEO/series/GSE2107.yaml +14 -0
- data/install_scripts/GEO/series/GSE2159.yaml +31 -0
- data/install_scripts/GEO/series/GSE2246.yaml +157 -0
- data/install_scripts/GEO/series/GSE2263.yaml +57 -0
- data/install_scripts/GEO/series/GSE2267.yaml +155 -0
- data/install_scripts/GEO/series/GSE23.yaml +58 -0
- data/install_scripts/GEO/series/GSE2329.yaml +43 -0
- data/install_scripts/GEO/series/GSE2330.yaml +55 -0
- data/install_scripts/GEO/series/GSE2349.yaml +19 -0
- data/install_scripts/GEO/series/GSE2412.yaml +58 -0
- data/install_scripts/GEO/series/GSE2419.yaml +27 -0
- data/install_scripts/GEO/series/GSE2420.yaml +29 -0
- data/install_scripts/GEO/series/GSE2434.yaml +37 -0
- data/install_scripts/GEO/series/GSE2526.yaml +23 -0
- data/install_scripts/GEO/series/GSE2579.yaml +19 -0
- data/install_scripts/GEO/series/GSE2806.yaml +11 -0
- data/install_scripts/GEO/series/GSE2831.yaml +35 -0
- data/install_scripts/GEO/series/GSE2832.yaml +17 -0
- data/install_scripts/GEO/series/GSE29.yaml +16 -0
- data/install_scripts/GEO/series/GSE3006.yaml +35 -0
- data/install_scripts/GEO/series/GSE3043.yaml +18 -0
- data/install_scripts/GEO/series/GSE3122.yaml +12 -0
- data/install_scripts/GEO/series/GSE3130.yaml +12 -0
- data/install_scripts/GEO/series/GSE3151.yaml +118 -0
- data/install_scripts/GEO/series/GSE3160.yaml +31 -0
- data/install_scripts/GEO/series/GSE3190.yaml +14 -0
- data/install_scripts/GEO/series/GSE3205.yaml +36 -0
- data/install_scripts/GEO/series/GSE3206.yaml +23 -0
- data/install_scripts/GEO/series/GSE3315.yaml +13 -0
- data/install_scripts/GEO/series/GSE3335.yaml +15 -0
- data/install_scripts/GEO/series/GSE34.yaml +31 -0
- data/install_scripts/GEO/series/GSE3470.yaml +15 -0
- data/install_scripts/GEO/series/GSE35.yaml +80 -0
- data/install_scripts/GEO/series/GSE3503.yaml +19 -0
- data/install_scripts/GEO/series/GSE3683.yaml +83 -0
- data/install_scripts/GEO/series/GSE3684.yaml +19 -0
- data/install_scripts/GEO/series/GSE3685.yaml +31 -0
- data/install_scripts/GEO/series/GSE3686.yaml +63 -0
- data/install_scripts/GEO/series/GSE3687.yaml +83 -0
- data/install_scripts/GEO/series/GSE3802.yaml +19 -0
- data/install_scripts/GEO/series/GSE3803.yaml +19 -0
- data/install_scripts/GEO/series/GSE3804.yaml +19 -0
- data/install_scripts/GEO/series/GSE3805.yaml +19 -0
- data/install_scripts/GEO/series/GSE3813.yaml +9 -0
- data/install_scripts/GEO/series/GSE3814.yaml +71 -0
- data/install_scripts/GEO/series/GSE3815.yaml +75 -0
- data/install_scripts/GEO/series/GSE3817.yaml +13 -0
- data/install_scripts/GEO/series/GSE3818.yaml +15 -0
- data/install_scripts/GEO/series/GSE3819.yaml +13 -0
- data/install_scripts/GEO/series/GSE3820.yaml +61 -0
- data/install_scripts/GEO/series/GSE3821.yaml +55 -0
- data/install_scripts/GEO/series/GSE3844.yaml +11 -0
- data/install_scripts/GEO/series/GSE3853.yaml +31 -0
- data/install_scripts/GEO/series/GSE3935.yaml +12 -0
- data/install_scripts/GEO/series/GSE3969.yaml +14 -0
- data/install_scripts/GEO/series/GSE4049.yaml +80 -0
- data/install_scripts/GEO/series/GSE4144.yaml +9 -0
- data/install_scripts/GEO/series/GSE4261.yaml +59 -0
- data/install_scripts/GEO/series/GSE4295.yaml +63 -0
- data/install_scripts/GEO/series/GSE4398.yaml +50 -0
- data/install_scripts/GEO/series/GSE4719.yaml +76 -0
- data/install_scripts/GEO/series/GSE4720.yaml +78 -0
- data/install_scripts/GEO/series/GSE4721.yaml +14 -0
- data/install_scripts/GEO/series/GSE4807.yaml +67 -0
- data/install_scripts/GEO/series/GSE4826.yaml +39 -0
- data/install_scripts/GEO/series/GSE4934.yaml +23 -0
- data/install_scripts/GEO/series/GSE5027.yaml +31 -0
- data/install_scripts/GEO/series/GSE5070.yaml +25 -0
- data/install_scripts/GEO/series/GSE5238.yaml +31 -0
- data/install_scripts/GEO/series/GSE5267.yaml +55 -0
- data/install_scripts/GEO/series/GSE5281.yaml +492 -0
- data/install_scripts/GEO/series/GSE5290.yaml +24 -0
- data/install_scripts/GEO/series/GSE5376.yaml +107 -0
- data/install_scripts/GEO/series/GSE5575.yaml +13 -0
- data/install_scripts/GEO/series/GSE5835.yaml +25 -0
- data/install_scripts/GEO/series/GSE5836.yaml +37 -0
- data/install_scripts/GEO/series/GSE5837.yaml +37 -0
- data/install_scripts/GEO/series/GSE5938.yaml +187 -0
- data/install_scripts/GEO/series/GSE600.yaml +29 -0
- data/install_scripts/GEO/series/GSE6018.yaml +55 -0
- data/install_scripts/GEO/series/GSE6066.yaml +20 -0
- data/install_scripts/GEO/series/GSE6067.yaml +31 -0
- data/install_scripts/GEO/series/GSE6068.yaml +55 -0
- data/install_scripts/GEO/series/GSE6070.yaml +31 -0
- data/install_scripts/GEO/series/GSE6071.yaml +30 -0
- data/install_scripts/GEO/series/GSE6072.yaml +37 -0
- data/install_scripts/GEO/series/GSE6101.yaml +26 -0
- data/install_scripts/GEO/series/GSE6111.yaml +20 -0
- data/install_scripts/GEO/series/GSE6190.yaml +30 -0
- data/install_scripts/GEO/series/GSE6277.yaml +19 -0
- data/install_scripts/GEO/series/GSE6331.yaml +51 -0
- data/install_scripts/GEO/series/GSE6346.yaml +49 -0
- data/install_scripts/GEO/series/GSE6358.yaml +22 -0
- data/install_scripts/GEO/series/GSE6405.yaml +36 -0
- data/install_scripts/GEO/series/GSE6450.yaml +51 -0
- data/install_scripts/GEO/series/GSE6687.yaml +15 -0
- data/install_scripts/GEO/series/GSE6705.yaml +19 -0
- data/install_scripts/GEO/series/GSE6801.yaml +27 -0
- data/install_scripts/GEO/series/GSE6847.yaml +18 -0
- data/install_scripts/GEO/series/GSE6870.yaml +23 -0
- data/install_scripts/GEO/series/GSE7103.yaml +28 -0
- data/install_scripts/GEO/series/GSE7140.yaml +19 -0
- data/install_scripts/GEO/series/GSE7188.yaml +23 -0
- data/install_scripts/GEO/series/GSE7261.yaml +16 -0
- data/install_scripts/GEO/series/GSE7337.yaml +19 -0
- data/install_scripts/GEO/series/GSE7338.yaml +19 -0
- data/install_scripts/GEO/series/GSE7362.yaml +123 -0
- data/install_scripts/GEO/series/GSE7369.yaml +15 -0
- data/install_scripts/GEO/series/GSE7525.yaml +33 -0
- data/install_scripts/GEO/series/GSE7537.yaml +27 -0
- data/install_scripts/GEO/series/GSE7645.yaml +152 -0
- data/install_scripts/GEO/series/GSE7660.yaml +41 -0
- data/install_scripts/GEO/series/GSE7820.yaml +30 -0
- data/install_scripts/GEO/series/GSE79.yaml +32 -0
- data/install_scripts/GEO/series/GSE8035.yaml +19 -0
- data/install_scripts/GEO/series/GSE8088.yaml +13 -0
- data/install_scripts/GEO/series/GSE8089.yaml +19 -0
- data/install_scripts/GEO/series/GSE8111.yaml +15 -0
- data/install_scripts/GEO/series/GSE8237.yaml +35 -0
- data/install_scripts/GEO/series/GSE8326.yaml +37 -0
- data/install_scripts/GEO/series/GSE8399.yaml +13 -0
- data/install_scripts/GEO/series/GSE850.yaml +15 -0
- data/install_scripts/GEO/series/GSE8506.yaml +32 -0
- data/install_scripts/GEO/series/GSE8542.yaml +47 -0
- data/install_scripts/GEO/series/GSE8558.yaml +19 -0
- data/install_scripts/GEO/series/GSE8559.yaml +47 -0
- data/install_scripts/GEO/series/GSE8613.yaml +19 -0
- data/install_scripts/GEO/series/GSE8629.yaml +18 -0
- data/install_scripts/GEO/series/GSE8729.yaml +19 -0
- data/install_scripts/GEO/series/GSE8761.yaml +55 -0
- data/install_scripts/GEO/series/GSE8765.yaml +15 -0
- data/install_scripts/GEO/series/GSE8805.yaml +64 -0
- data/install_scripts/GEO/series/GSE8825.yaml +79 -0
- data/install_scripts/GEO/series/GSE8895.yaml +31 -0
- data/install_scripts/GEO/series/GSE8897.yaml +17 -0
- data/install_scripts/GEO/series/GSE8898.yaml +18 -0
- data/install_scripts/GEO/series/GSE8900.yaml +43 -0
- data/install_scripts/GEO/series/GSE8982.yaml +106 -0
- data/install_scripts/GEO/series/GSE920.yaml +20 -0
- data/install_scripts/GEO/series/GSE960.yaml +10 -0
- data/install_scripts/GEO/series/GSE961.yaml +14 -0
- data/install_scripts/GEO/series/GSE962.yaml +20 -0
- data/install_scripts/GEO/series/GSE963.yaml +14 -0
- data/install_scripts/GEO/series/GSE964.yaml +14 -0
- data/install_scripts/GEO/series/GSE965.yaml +14 -0
- data/install_scripts/GEO/series/GSE966.yaml +14 -0
- data/install_scripts/GEO/series/GSE993.yaml +9 -0
- data/lib/MARQ.rb +79 -0
- data/lib/MARQ/CustomDS.rb +99 -0
- data/lib/MARQ/GEO.rb +588 -0
- data/lib/MARQ/ID.rb +144 -0
- data/lib/MARQ/MADB.rb +238 -0
- data/lib/MARQ/annotations.rb +740 -0
- data/lib/MARQ/fdr.rb +177 -0
- data/lib/MARQ/main.rb +227 -0
- data/lib/MARQ/rankproduct.rb +146 -0
- data/lib/MARQ/score.rb +395 -0
- data/tasks/install.rake +21 -0
- metadata +588 -0
data/README.rdoc
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
= MARQ
|
2
|
+
|
3
|
+
MicroArray Rank Query (MARQ) is an application used to retrieve microarray
|
4
|
+
experiments that are similar to a given query based on a rank statistic. This
|
5
|
+
package includes the tools to build the microarray database, a SOAP web server
|
6
|
+
to perform the queries and a merb application that offers a complete visual
|
7
|
+
interface to the system with several additional features.
|
8
|
+
|
9
|
+
== Installation
|
10
|
+
|
11
|
+
Install the gem and all the dependencies. This gem depends on several others,
|
12
|
+
including Rbbt. Rbbt offers an API with the gene identifier translation used in
|
13
|
+
MARQ. To install MARQ follow this recipie:
|
14
|
+
|
15
|
+
* Install Rbbt
|
16
|
+
|
17
|
+
rbbt_config configure
|
18
|
+
rbbt_config install identifiers
|
19
|
+
rbbt_config organisms
|
20
|
+
# Choose the organisms you are interested in, and take the keyword. Like sgd for yeast
|
21
|
+
rbbt_config update organisms -o sgd
|
22
|
+
|
23
|
+
* Install R
|
24
|
+
* Install bioconductor and GEOquery
|
25
|
+
source("http://bioconductor.org/biocLite.R")
|
26
|
+
biocLite()
|
27
|
+
biocLite('GEOquery')
|
28
|
+
|
29
|
+
* Install mysql
|
30
|
+
* Create database
|
31
|
+
CREATE DATABASE madb;
|
32
|
+
CREATE USER 'marq'@'localhost' IDENTIFIED BY 'marq_password';
|
33
|
+
GRANT ALL PRIVILEGES ON madb.* TO 'marq'@'localhost';
|
34
|
+
|
35
|
+
* Install MARQ
|
36
|
+
marq_config config
|
37
|
+
marq_config install identifiers
|
38
|
+
marq_config update GEO
|
39
|
+
|
40
|
+
* MARQ depends on many gems. Some may be problematic to install, in particular
|
41
|
+
rsruby. You may need to get the source and build it yourself instead
|
42
|
+
of using the gem command. http://github.com/alexgutteridge/rsruby. Also RubyInline
|
43
|
+
does not work in ruby1.9 so its require has been delayed to just when its about
|
44
|
+
to be used.
|
45
|
+
|
46
|
+
== Note on Patches/Pull Requests
|
47
|
+
|
48
|
+
* Fork the project.
|
49
|
+
* Make your feature addition or bug fix.
|
50
|
+
* Add tests for it. This is important so I don't break it in a
|
51
|
+
future version unintentionally.
|
52
|
+
* Commit, do not mess with rakefile, version, or history.
|
53
|
+
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
54
|
+
* Send me a pull request. Bonus points for topic branches.
|
55
|
+
|
56
|
+
== Copyright
|
57
|
+
|
58
|
+
Copyright (c) 2009 Miguel Vazquez. See LICENSE for details.
|
data/bin/marq_config
ADDED
@@ -0,0 +1,209 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
|
3
|
+
require 'simpleconsole'
|
4
|
+
|
5
|
+
def configure
|
6
|
+
config = {}
|
7
|
+
require 'yaml'
|
8
|
+
|
9
|
+
directories = {
|
10
|
+
'cachedir' => ['cache', "Cache Directory: This directory will hold downloads, from GEO, Arrayexpress, etc."],
|
11
|
+
'datadir' => ['data', "Data Directory: This directory will hold the data files produced when processing GEO, Arrayexpress, etc."],
|
12
|
+
'workdir' => ['work', "Work Directory: This directory will be used by the Web Server to hold job files."],
|
13
|
+
|
14
|
+
}
|
15
|
+
|
16
|
+
defaultdir = File.join(ENV['HOME'],'MARQ')
|
17
|
+
|
18
|
+
puts "Please indicate where you wish to place the data directories: "
|
19
|
+
puts
|
20
|
+
|
21
|
+
directories.each{|name, info|
|
22
|
+
puts info[1]
|
23
|
+
default = File.join(defaultdir, info[0])
|
24
|
+
print "[#{default}]? "
|
25
|
+
input = STDIN.gets
|
26
|
+
input = default unless input =~ /\w/
|
27
|
+
config[name] = input
|
28
|
+
}
|
29
|
+
|
30
|
+
options = {
|
31
|
+
'dbname' => ['madb',"Database Name"],
|
32
|
+
'dbuser' => ['marq',"Database User"],
|
33
|
+
'dbpass' => ['marq_password',"Database Password"],
|
34
|
+
'dbhost' => ['localhost',"Database Host"],
|
35
|
+
}
|
36
|
+
|
37
|
+
|
38
|
+
puts "Please indicate other configuration variables: "
|
39
|
+
puts
|
40
|
+
|
41
|
+
options.each{|name, info|
|
42
|
+
puts info[1]
|
43
|
+
default = info[0]
|
44
|
+
print "[#{default}]? "
|
45
|
+
input = STDIN.gets
|
46
|
+
input = default unless input =~ /\w/
|
47
|
+
config[name] = input
|
48
|
+
}
|
49
|
+
|
50
|
+
fout = File.open(File.join(ENV['HOME'], '.MARQ'), 'w')
|
51
|
+
fout.write config.to_yaml
|
52
|
+
fout.close
|
53
|
+
|
54
|
+
require 'MARQ'
|
55
|
+
|
56
|
+
end
|
57
|
+
|
58
|
+
begin
|
59
|
+
require 'MARQ'
|
60
|
+
rescue
|
61
|
+
puts $!.message
|
62
|
+
configure
|
63
|
+
exit
|
64
|
+
end
|
65
|
+
|
66
|
+
|
67
|
+
$USAGE =<<EOT
|
68
|
+
#{__FILE__} <action> [<subaction>] [--force (true|false)] [--update_db (true|false)] [--platform <gpl>] [--series <gse>] [--organism <org>] [--port <number>] [--host <name>]
|
69
|
+
actions:
|
70
|
+
* config: Set paths for data, cache, and tmp directories
|
71
|
+
|
72
|
+
* install:
|
73
|
+
* GEO: Install management files to process GEO datasets and series
|
74
|
+
* CustomDS: Install management files to process data from other sources
|
75
|
+
* identifiers: Load the identifier equivalences in the database
|
76
|
+
|
77
|
+
* update:
|
78
|
+
* GEO: Process datasets and series from GEO
|
79
|
+
* CustomDS: Process datasets from other sources
|
80
|
+
|
81
|
+
* init:
|
82
|
+
* webservice: Start the SOAP Web Service
|
83
|
+
* www: Start the merb server
|
84
|
+
|
85
|
+
|
86
|
+
EOT
|
87
|
+
|
88
|
+
class Controller < SimpleConsole::Controller
|
89
|
+
params :string => {:p => :platform, :s => :series, :o => :organism}, :boolean => {:d => :update_db, :f => :force}, :integer => {:p => :port}
|
90
|
+
|
91
|
+
|
92
|
+
def install
|
93
|
+
$organism = params[:organism] unless params[:organism].nil?
|
94
|
+
@actions = params[:id] || %w(GEO)
|
95
|
+
end
|
96
|
+
|
97
|
+
def update
|
98
|
+
$platform = params[:platform] unless params[:platform].nil?
|
99
|
+
$series = params[:series] unless params[:series].nil?
|
100
|
+
$organism = params[:organism] unless params[:organism].nil?
|
101
|
+
$update_db = params[:update_db] && params[:update_db] =~ /true|yes|y/i
|
102
|
+
$force = params[:force] && params[:force] =~ /true|yes|y/i
|
103
|
+
@actions = params[:id] || %w(GEO)
|
104
|
+
end
|
105
|
+
|
106
|
+
def config
|
107
|
+
end
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
def default
|
112
|
+
render :action => :usage
|
113
|
+
end
|
114
|
+
|
115
|
+
def init
|
116
|
+
$host = [params[:host], `hostname`.chomp.strip + '.' + `hostname -d`.chomp.strip].compact.first
|
117
|
+
$port = params[:port]
|
118
|
+
@action = params[:id]
|
119
|
+
end
|
120
|
+
|
121
|
+
|
122
|
+
end
|
123
|
+
|
124
|
+
|
125
|
+
class View < SimpleConsole::View
|
126
|
+
|
127
|
+
def init
|
128
|
+
case @action
|
129
|
+
when 'webservice'
|
130
|
+
require 'MARQWS'
|
131
|
+
$port = [$port, 8282].compact.first
|
132
|
+
FileUtils.cd File.join(MARQ.rootdir, 'webservice')
|
133
|
+
|
134
|
+
puts "Starting Server in #{ $host }:#{ $port }"
|
135
|
+
server = MARQWS.new("MARQ", "MARQ Web Server", $host, $port, File.join(MARQ.workdir,'webservice', 'jobs'))
|
136
|
+
|
137
|
+
FileUtils.mkdir_p File.join(MARQ.workdir, '/webservice', 'wsdl/') unless File.exist? File.join(MARQ.workdir, '/webservice', 'wsdl/')
|
138
|
+
File.open(File.join(MARQ.workdir, '/webservice', 'wsdl', 'MARQWS.wsdl'),'w'){|file| file.write server.wsdl}
|
139
|
+
|
140
|
+
trap('INT') { server.shutdown }
|
141
|
+
server.start
|
142
|
+
when 'www'
|
143
|
+
require 'merb-core'
|
144
|
+
$port = [$port, 8281].compact.first
|
145
|
+
|
146
|
+
FileUtils.rm Dir.glob(File.join(MARQ.workdir, 'merb','cache','*.lock'))
|
147
|
+
|
148
|
+
puts(File.join(MARQ.rootdir, 'merb'))
|
149
|
+
Dir.chdir(File.join(MARQ.rootdir, 'merb'))
|
150
|
+
puts Dir.pwd
|
151
|
+
|
152
|
+
Merb.start("-a mongrel -e production -p #{ $port } -h #{ $host }".split)
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
def usage
|
157
|
+
puts $USAGE
|
158
|
+
end
|
159
|
+
|
160
|
+
def config
|
161
|
+
configure
|
162
|
+
end
|
163
|
+
|
164
|
+
def install
|
165
|
+
require 'rbbt/sources/organism'
|
166
|
+
require 'MARQ/ID'
|
167
|
+
case
|
168
|
+
when @actions == 'identifiers'
|
169
|
+
if $organism
|
170
|
+
organisms = [$organism]
|
171
|
+
else
|
172
|
+
organisms = Organism.all
|
173
|
+
end
|
174
|
+
organisms.each{|org|
|
175
|
+
ID.DB_load(org)
|
176
|
+
}
|
177
|
+
else
|
178
|
+
require 'rake'
|
179
|
+
load File.join(MARQ.rootdir, 'tasks/install.rake')
|
180
|
+
|
181
|
+
@actions = [@actions] if @actions === String
|
182
|
+
@actions.each{|action|
|
183
|
+
puts "Installing #{ action }"
|
184
|
+
Rake::Task[action].invoke
|
185
|
+
}
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
def update
|
190
|
+
install
|
191
|
+
|
192
|
+
require 'rake'
|
193
|
+
@actions = [@actions] if @actions === String
|
194
|
+
|
195
|
+
@actions.each{|action|
|
196
|
+
Thread.new{
|
197
|
+
puts "Updating #{action}"
|
198
|
+
FileUtils.cd File.join(MARQ.datadir, action)
|
199
|
+
load File.join(MARQ.datadir, action, 'Rakefile')
|
200
|
+
Rake::Task['default'].invoke
|
201
|
+
}.join
|
202
|
+
}
|
203
|
+
end
|
204
|
+
|
205
|
+
|
206
|
+
end
|
207
|
+
|
208
|
+
SimpleConsole::Application.run(ARGV, Controller, View)
|
209
|
+
|
@@ -0,0 +1,223 @@
|
|
1
|
+
require 'MARQ'
|
2
|
+
require 'MARQ/CustomDS'
|
3
|
+
require 'MARQ/MADB'
|
4
|
+
require 'MARQ/annotations'
|
5
|
+
require 'progress-monitor'
|
6
|
+
|
7
|
+
$org ||= ENV['organism']
|
8
|
+
|
9
|
+
$expr_threshold ||= (ENV['threshold'] || 0.05).to_f
|
10
|
+
$folds ||= (ENV['folds'] || 2.5).to_f
|
11
|
+
$nth_genes ||= (ENV['nth_genes'] || 100).to_i
|
12
|
+
|
13
|
+
$force = [$force, ENV['force'], false]. reject{|e| e.nil?}.first
|
14
|
+
$update_db = [$update_db, ENV['update_db'], true]. reject{|e| e.nil?}.first
|
15
|
+
$fdr = [$fdr, ENV['fdr'], true]. reject{|e| e.nil?}.first
|
16
|
+
$do_folds = [$do_folds, ENV['do_folds'], true]. reject{|e| e.nil?}.first
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
task 'data' do
|
22
|
+
organisms = Dir.glob(CustomDS::customdir + '/*').select{|f| File.directory? f}.collect{|f| File.basename(f)} - ["annotations"]
|
23
|
+
|
24
|
+
organisms.each{|org|
|
25
|
+
datasets = Dir.glob(File.join(CustomDS::customdir, org) + '/*').select{|f| File.directory? f}.collect{|f| File.basename(f)}
|
26
|
+
if $force
|
27
|
+
missing = datasets
|
28
|
+
else
|
29
|
+
missing = datasets - CustomDS::datasets(org)
|
30
|
+
end
|
31
|
+
missing.each{|d|
|
32
|
+
CustomDS::process(d)
|
33
|
+
MADB::CustomDS::save(d)
|
34
|
+
}
|
35
|
+
}
|
36
|
+
end
|
37
|
+
|
38
|
+
|
39
|
+
def annotations(name, cross_platform = false, &block)
|
40
|
+
FileUtils.mkdir_p File.join("annotations", name) unless File.exist? File.join("annotations", name)
|
41
|
+
organisms = Dir.glob(CustomDS::customdir + '/*').select{|f| File.directory? f}.collect{|f| File.basename(f)} - ["annotations"]
|
42
|
+
|
43
|
+
Progress.monitor("Annotating with #{ name }")
|
44
|
+
organisms.each{|org|
|
45
|
+
Progress.monitor("Annotating organism #{ org }")
|
46
|
+
CustomDS::datasets(org).each{|dataset|
|
47
|
+
begin
|
48
|
+
next if File.exist? File.join("annotations", name, dataset)
|
49
|
+
filename = File.join("annotations", name, dataset)
|
50
|
+
dataset += '_cross_platform' if cross_platform && GEO.has_cross_platform?(dataset)
|
51
|
+
next if File.exist? CustomDS.path(dataset) + '.skip'
|
52
|
+
terms = block.call(dataset)
|
53
|
+
Open.write(filename, terms.to_yaml)
|
54
|
+
rescue Exception
|
55
|
+
puts $!.message
|
56
|
+
end
|
57
|
+
}
|
58
|
+
}
|
59
|
+
end
|
60
|
+
|
61
|
+
def goterms(org, list, slim, threshold)
|
62
|
+
return [] if list.empty?
|
63
|
+
results = Annotations::GO::Genecodis::Local.analysis(org, list, slim)
|
64
|
+
results.
|
65
|
+
select{|info| info[:s].to_i > 2 }.
|
66
|
+
select{|info| info[:hyp_c].to_f < threshold }.
|
67
|
+
collect{|info| info[:items]}.collect{|id| GO::id2name(id)}
|
68
|
+
end
|
69
|
+
|
70
|
+
|
71
|
+
task 'annotate_Words' do
|
72
|
+
FileUtils.mkdir_p "annotations/Words"
|
73
|
+
require 'rbbt/bow/bow'
|
74
|
+
organisms = Dir.glob(CustomDS::customdir + '/*').select{|f| File.directory? f}.collect{|f| File.basename(f)} - ["annotations"]
|
75
|
+
organisms.each{|org|
|
76
|
+
CustomDS::datasets(org).each{|dataset|
|
77
|
+
begin
|
78
|
+
next if File.exist? "annotations/Words/#{ dataset }"
|
79
|
+
next if File.exist? CustomDS.path(dataset) + '.skip'
|
80
|
+
|
81
|
+
terms = {}
|
82
|
+
description = Open.read(CustomDS.path(dataset) + '.description')
|
83
|
+
terms[:dataset] = [dataset] + description.words
|
84
|
+
Open.read(CustomDS.path(dataset) + '.experiments').collect{|name|
|
85
|
+
name = name.strip
|
86
|
+
terms[name] = name.sub(/\[ratio\]/,'').words
|
87
|
+
}
|
88
|
+
|
89
|
+
Open.write("annotations/Words/#{ dataset }", terms.to_yaml)
|
90
|
+
|
91
|
+
rescue Exception
|
92
|
+
puts $!.message
|
93
|
+
end
|
94
|
+
}
|
95
|
+
}
|
96
|
+
end
|
97
|
+
|
98
|
+
task 'annotate_UMLS' do
|
99
|
+
FileUtils.mkdir_p "annotations/UMLS"
|
100
|
+
organisms = Dir.glob(CustomDS::customdir + '/*').select{|f| File.directory? f}.collect{|f| File.basename(f)} - ["annotations"]
|
101
|
+
organisms.each{|org|
|
102
|
+
CustomDS::datasets(org).each{|dataset|
|
103
|
+
begin
|
104
|
+
next if File.exist? "annotations/UMLS/#{ dataset }"
|
105
|
+
next if File.exist? CustomDS.path(dataset) + '.skip'
|
106
|
+
terms = {}
|
107
|
+
description = Open.read(CustomDS.path(dataset) + '.description')
|
108
|
+
terms[:dataset] = Annotations::UMLS::OBA(description)
|
109
|
+
Open.read(CustomDS.path(dataset) + '.experiments').collect{|name|
|
110
|
+
name = name.strip
|
111
|
+
terms[name] = Annotations::UMLS::OBA(name)
|
112
|
+
}
|
113
|
+
Open.write("annotations/UMLS/#{ dataset }", terms.to_yaml)
|
114
|
+
rescue Exception
|
115
|
+
puts $!.message
|
116
|
+
end
|
117
|
+
}
|
118
|
+
}
|
119
|
+
|
120
|
+
end
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
task 'annotate_Words' do
|
126
|
+
annotations('Words'){|dataset|
|
127
|
+
description = Open.read(CustomDS.path(dataset) + '.description')
|
128
|
+
terms[:dataset] = [dataset] + description.words
|
129
|
+
Open.read(CustomDS.path(dataset) + '.experiments').collect{|name|
|
130
|
+
name = name.strip
|
131
|
+
terms[name] = name.sub(/\[ratio\]/,'').words
|
132
|
+
}
|
133
|
+
terms
|
134
|
+
}
|
135
|
+
end
|
136
|
+
|
137
|
+
task 'annotate_UMLS' do
|
138
|
+
annotations('Words'){|dataset|
|
139
|
+
description = Open.read(CustomDS.path(dataset) + '.description')
|
140
|
+
terms[:dataset] = Annotations::UMLS::OBA(description).uniq
|
141
|
+
Open.read(CustomDS.path(dataset) + '.experiments').collect{|name|
|
142
|
+
name = name.strip
|
143
|
+
terms[name] = Annotations::UMLS::OBA(name.sub(/.*?: /,'').sub(/\[ratio\]/,'')).uniq
|
144
|
+
}
|
145
|
+
terms
|
146
|
+
}
|
147
|
+
end
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
task 'annotate_Polysearch' do
|
152
|
+
require 'rbbt/sources/polysearch'
|
153
|
+
annotations('Polysearch'){|dataset|
|
154
|
+
terms = {}
|
155
|
+
description = Open.read(CustomDS.path(dataset) + '.description')
|
156
|
+
terms[:dataset] = Polysearch::match(description).values.flatten.sort.collect{|n| n.gsub(/\s+/,' ').downcase}.uniq
|
157
|
+
Open.read(CustomDS.path(dataset) + '.experiments').collect{|name|
|
158
|
+
name = name.strip
|
159
|
+
terms[name] = Polysearch::match(name.sub(/.*?: /,'').sub(/\[ratio\]/,'')).values.flatten.sort.collect{|n| n.gsub(/\s+/,' ').downcase}.uniq
|
160
|
+
}
|
161
|
+
terms
|
162
|
+
}
|
163
|
+
|
164
|
+
end
|
165
|
+
|
166
|
+
task 'annotate_GO' do
|
167
|
+
require 'rbbt/sources/go'
|
168
|
+
options = { :cut_off => $expr_threshold, :fdr => $fdr, :folds => $folds, :do_folds => $do_folds, :nth_genes => $nth_genes}
|
169
|
+
annotations('GO_up', true){|dataset|
|
170
|
+
org = MARQ.platform_organism(dataset)
|
171
|
+
genes = Annotations::GO.get_genes(dataset, options)
|
172
|
+
|
173
|
+
up = {}
|
174
|
+
genes[:up] ||= []
|
175
|
+
genes[:up].collect{|experiment,list|
|
176
|
+
up[experiment] = goterms(org, list, false, $expr_threshold)
|
177
|
+
}
|
178
|
+
up
|
179
|
+
}
|
180
|
+
|
181
|
+
annotations('GO_down', true){|dataset|
|
182
|
+
org = MARQ.platform_organism(dataset)
|
183
|
+
genes = Annotations::GO.get_genes(dataset, options)
|
184
|
+
|
185
|
+
down = {}
|
186
|
+
genes[:down] ||= []
|
187
|
+
genes[:down].collect{|experiment,list|
|
188
|
+
down[experiment] = goterms(org, list, false, $expr_threshold)
|
189
|
+
}
|
190
|
+
down
|
191
|
+
}
|
192
|
+
annotations('GOSlim_up', true){|dataset|
|
193
|
+
org = MARQ.platform_organism(dataset)
|
194
|
+
genes = Annotations::GO.get_genes(dataset, options)
|
195
|
+
|
196
|
+
up = {}
|
197
|
+
genes[:up] ||= []
|
198
|
+
genes[:up].collect{|experiment,list|
|
199
|
+
up[experiment] = goterms(org, list, true, $expr_threshold)
|
200
|
+
}
|
201
|
+
up
|
202
|
+
}
|
203
|
+
|
204
|
+
annotations('GOSlim_down', true){|dataset|
|
205
|
+
org = MARQ.platform_organism(dataset)
|
206
|
+
genes = Annotations::GO.get_genes(dataset, options)
|
207
|
+
|
208
|
+
down = {}
|
209
|
+
genes[:down] ||= []
|
210
|
+
genes[:down].collect{|experiment,list|
|
211
|
+
down[experiment] = goterms(org, list, true, $expr_threshold)
|
212
|
+
}
|
213
|
+
down
|
214
|
+
}
|
215
|
+
end
|
216
|
+
|
217
|
+
task 'default' do
|
218
|
+
Rake::Task['data'].invoke
|
219
|
+
Rake::Task['annotate_Words'].invoke
|
220
|
+
Rake::Task['annotate_UMLS'].invoke
|
221
|
+
Rake::Task['annotate_Polysearch'].invoke
|
222
|
+
Rake::Task['annotate_GO'].invoke
|
223
|
+
end
|