useDynLib(bnbc, .registration=TRUE)
importFrom(Rcpp, evalCpp)

import(methods)
import(SummarizedExperiment)
import(GenomicRanges)
import(IRanges)
import(S4Vectors)
importMethodsFrom(Seqinfo, genome, seqlengths, seqlevels)
importFrom(utils, txtProgressBar, setTxtProgressBar, write.table)

importFrom(BiocGenerics, rownames, cbind)
importFrom(sva, ComBat)
importFrom(preprocessCore, normalize.quantiles)
importFrom(parallel, mclapply)
importFrom(matrixStats, rowVars)
importFrom(EBImage, gblur, makeBrush, filter2)

importFrom(rhdf5, H5Fopen, H5Fclose, h5read, h5closeAll)
importFrom(data.table, data.table, setkey)

importFrom(HiCBricks, Create_many_Bricks_from_mcool,
           Brick_load_data_from_mcool,
           Brick_get_entire_matrix)

## importMethodsFrom(Matrix, mean, rowMeans, t, triu, which)






export(bnbc)

exportClasses(ContactGroup)
exportMethods("rowData", "rowData<-", "colData", "colData<-", "dim", "show", "[")
export(ContactGroup, contacts, "contacts<-")

export(librarySize)
export(logCPM)
export(boxSmoother)
export(gaussSmoother)

export(getBandMatrix)
export(getGroupZeros)
export(dropGroupZeros)
export(cgBandApply)
export(cgApply)
export(distanceIdx)
export(getBandIdx)
export("band<-")
export(band)
export(getChrIdx)
export(getChrCGFromCools)
export(cg2bedgraph2)
