useDynLib("snpStats")
import(methods)
importFrom(graphics, abline, axis, barplot, legend, mtext, par, plot,
           points, polygon)
importFrom(grDevices, heat.colors)
importFrom(stats, model.matrix, model.offset, model.response,
           model.weights, pchisq, qbeta, qchisq, terms)
importFrom(survival, cluster, strata, untangle.specials)
importFrom(utils, download.file, flush.console, head, read.table)

exportClasses(SnpMatrix, XSnpMatrix, ImputationRules,
              SingleSnpTests, SingleSnpTestsScore,
              GlmTests, GlmEstimates)
exportMethods(cbind2, chi.squared, deg.freedom, effect.sign, is.na, 
              names, pool2, p.value, rbind2, show, summary, switch.alleles,
              plot, sample.size, effective.sample.size,
              "[", "[<-", coerce, initialize)
export(can.impute, convert.snpMatrix, convert.snpMatrix.dir,
       filter.rules, Fst, glm.test.control, ibsCount, ibsDist,
       impute.snps, imputation.maf, imputation.r2, imputation.nsnp, ld,
       misinherits, mvtests, plotUncertainty, pool, pp, qq.chisq, 
       read.beagle, read.impute, read.long, read.mach, read.pedfile,
       read.plink, read.snps.long, row.summary, col.summary,
       single.snp.tests, sm.compare, snp.cbind, snp.rbind,
       snp.cor, snp.imputation, snp.lhs.tests, snp.lhs.estimates,
       snp.post.multiply, snp.pre.multiply,
       snp.rhs.tests, snp.rhs.estimates, tdt.snp,
       test.allele.switch, write.plink, write.SnpMatrix, xxt)
