import("methods")
import("AnnotationDbi")
importMethodsFrom("Biobase", "annotation", "annotation<-", "description")
importFrom("RBGL", "tsort", "dijkstra.sp")
importFrom("GSEABase", "geneIds", "geneIds<-", "ontology")


export(
       ".doHyperGTest",
       "applyByCategory",
       "cateGOry",
       "cb_children",
       "cb_contingency",
       "cb_parse_band_Hs",
       "cb_parse_band_Mm",
       "cb_sigBands",
       "cb_test",
       "chrBandInciMat",
       "ChrBandTreeFromGraph",
       "DatPkgFactory",
       "exampleLevels",
       "findAMstats",
       "geneGoHyperGeoTest",
       "geneIds",
       "geneIds<-",
       "geneKeggHyperGeoTest",
       "getPathNames",
       "gseattperm",
       "makeChrBandGraph",
       "makeChrBandInciMat",
       "makeEBcontr",
       "NewChrBandTree",
       "MAPAmat",
       "ontology",
       "probes2MAP",
       "probes2Path",
       "ttperm")

exportClasses("DatPkg",
              "AffyDatPkg",
              "YeastDatPkg",
              "Org.XX.egDatPkg",

              "HyperGParams",
              "GOHyperGParams",
              "KEGGHyperGParams",
              "PFAMHyperGParams",
              "ChrMapHyperGParams",

              "HyperGResultBase",
              "HyperGResult",
              "ChrMapHyperGResult",
              "ChrBandTree",
              "KEGGHyperGResult",
              "PFAMHyperGResult",

              "LinearMParams",
              "ChrMapLinearMParams",

              "LinearMResultBase",
              "LinearMResult",
              "ChrMapLinearMResult")

exportMethods("hyperGTest",
              "linearMTest",

              "universeBuilder",
              "categoryToEntrezBuilder",

              "categoryName",
              "makeValidParams",

              ## accessors for HyperGResult and LinearMResult
              "chrGraph",
              "pvalues",
              "effectSize",
              "geneCounts",
              "universeCounts",
              "universeMappedCount",
              "geneMappedCount",
              "annotation",
              "annotation<-",
              "geneIds",
              "geneIds<-",
              "geneIdsByCategory",
              "geneIdUniverse",
              "condGeneIdUniverse",
              "testName",
              "pvalueCutoff",
              "pvalueCutoff<-",
              "testDirection",
              "testDirection<-",
              "description",
              "universeGeneIds",
              "ontology",
              "ontology<-",
              "conditional",
              "conditional<-",
              "isConditional",
              "oddsRatios",
              "expectedCounts",
              "htmlReport",
              "sigCategories",

              ## accessors for DatPkg
              "ID2GO",
              "ID2EntrezID",
              "GO2AllProbes",

              "initialize",
              "show",
              "summary",

              ## accessors for ChrBandTree
              "allGeneIds",
              "childrenOf",
              "level2nodes",
              "lgeneIds",
              "parentOf",
              "treeLevels")
