export(dba,
       dba.peakset,
       dba.overlap,
       dba.count,
       dba.contrast,
       dba.analyze,
       dba.report,
       dba.plotHeatmap,
       dba.plotPCA,
       dba.plotMA,
       dba.plotVolcano,
       dba.plotVenn,
       dba.plotBox,
       dba.show,
       dba.mask,
       dba.save,
       dba.load,
       DBA_GROUP,
       DBA_ID,
       DBA_TISSUE,
       DBA_FACTOR,
       DBA_CONDITION,
       DBA_TREATMENT,
       DBA_CONSENSUS,
       DBA_CALLER,
       DBA_CONTROL,
       DBA_REPLICATE,
       DBA_INTERVALS,
       DBA_FRIP,
       DBA_ALL_ATTRIBUTES,
       DBA_OLAP_PEAKS,
       DBA_OLAP_ALL,
       DBA_OLAP_RATE,
       DBA_COR,
       DBA_OLAP,
       DBA_INALL,
       DBA_SCORE_RPKM,
       DBA_SCORE_RPKM_FOLD,
       DBA_SCORE_READS,
       DBA_SCORE_READS_FOLD,
       DBA_SCORE_READS_MINUS,
       DBA_SCORE_TMM_MINUS_FULL,
       DBA_SCORE_TMM_MINUS_EFFECTIVE,
       DBA_SCORE_TMM_READS_FULL,
       DBA_SCORE_TMM_READS_EFFECTIVE,
       DBA_SCORE_TMM_MINUS_FULL_CPM,
       DBA_SCORE_TMM_MINUS_EFFECTIVE_CPM,
       DBA_SCORE_TMM_READS_FULL_CPM,
       DBA_SCORE_TMM_READS_EFFECTIVE_CPM,
       DBA_SCORE_SUMMIT,
       DBA_SCORE_SUMMIT_ADJ,       
       DBA_SCORE_SUMMIT_POS,
       DBA_READS_DEFAULT,
       DBA_READS_BAM,
       DBA_READS_BED, 
       DBA_EDGER,
       DBA_EDGER_BLOCK,
       DBA_EDGER_GLM,
       DBA_EDGER_CLASSIC,
       DBA_DESEQ,
       DBA_DESEQ_BLOCK,
       DBA_DESEQ_GLM,
       DBA_DESEQ_CLASSIC,
       DBA_DESEQ2,
       DBA_DESEQ2_BLOCK,
       DBA_ALL_METHODS,
       DBA_ALL_BLOCK,
       DBA_ALL_METHODS_BLOCK,
       DBA_DATA_FRAME,
       DBA_DATA_RANGEDDATA,
       DBA_DATA_GRANGES,
       DBA_DATA_SUMMARIZED_EXPERIMENT,
       DBA_DATA_DBAOBJECT)

exportClasses("DBA")

S3method(print,DBA)
S3method(plot,DBA)
S3method(summary,DBA)

useDynLib(DiffBind)

importFrom(amap, Dist)

importFrom(gplots, heatmap.2)

importFrom(edgeR,   
           estimateCommonDisp, estimateGLMCommonDisp, estimateGLMTagwiseDisp,
           estimateTagwiseDisp, exactTest, glmFit, glmLRT,
           topTags,calcNormFactors, DGEList)

importFrom(IRanges, IRanges)

importFrom(GenomicRanges, GRanges, seqnames, width)

importFrom(SummarizedExperiment, SummarizedExperiment, assay)

importFrom(graphics, abline, boxplot, plot, points, smoothScatter,
           "axis", "hist", "image", "layout", "lines",
           "mtext", "par", "plot.new", "rect", "text", "title")

importFrom(grDevices, colorRampPalette)

importFrom(RColorBrewer, brewer.pal)

importFrom(stats, model.matrix, p.adjust, t.test,
           wilcox.test, dist, hclust, order.dendrogram,
           as.dendrogram, reorder,
           "as.formula", "density", "formula", "prcomp",
           "weighted.mean", "cor", "median", "princomp", "sd", "update")

importFrom(utils, read.table, write.csv, write.table, packageVersion,"read.csv")

importFrom(limma,nonEstimable)

importFrom(GenomicAlignments,summarizeOverlaps)

importFrom(lattice, xyplot)

import(locfit)

importFrom(systemPipeR,vennPlot)

importFrom(tools,file_ext)

importFrom(Rcpp, evalCpp)

importFrom(dplyr,bind_rows, mutate, filter)

importFrom(BiocParallel, bplapply)

importFrom(parallel, mclapply)
if (tools:::.OStype() == "unix") {
  importFrom(parallel, mcparallel, mccollect)
}

importFrom(S4Vectors, DataFrame, SimpleList, Rle, "elementMetadata<-")

importFrom(Rsamtools, BamFileList, ScanBamParam, scanBamFlag, countBam)

importFrom(methods,as)

importFrom(ggplot2, ggplot, aes, geom_point, scale_color_manual, 
           labs, geom_text)
importFrom(ggrepel,geom_text_repel)
