import(methods)
import(BiocGenerics)
import(S4Vectors)
import(GenomicRanges)

importClassesFrom(Seqinfo, Seqinfo, GenomeDescription)

importMethodsFrom(BiocFileCache, bfcinfo)
importMethodsFrom(Biostrings, match)
importMethodsFrom(Seqinfo, "seqinfo<-",
                           seqlevels,
                           "seqlevels<-",
                           "isCircular",
                           "isCircular<-",
                           genome,
                           "genome<-",
                           provider,
                           providerVersion)
importMethodsFrom(GenomeInfoDb, seqlevelsStyle,
                                "seqlevelsStyle<-")
importMethodsFrom(IRanges, start,
                           width,
                           flank,
                           nchar,
                           unlist,
                           which,
                           order,
                           togroup,
                           findOverlaps,
                           as.vector,
                           coverage,
                           Views,
                           viewMeans)
importMethodsFrom(AnnotationHub, query,
                                 cache,
                                 hubCache)
importMethodsFrom(DelayedArray, seed)

importFrom(stats, setNames)

importFrom(rhdf5, h5ls,
                  h5createFile,
                  h5createGroup)

importFrom(DelayedArray, RleArray)

importFrom(HDF5Array, HDF5Array,
                      writeHDF5Array)

importFrom(utils, installed.packages,
                  data,
                  packageDescription,
                  capture.output,
                  as.person,
                  bibentry,
                  read.csv)

importFrom(XML, xmlGetAttr,
                htmlTreeParse)

importFrom(httr, content,
                 GET)

importFrom(Biobase, createPackage)

importFrom(BiocManager, available)

importFrom(BiocFileCache, BiocFileCache)

importFrom(Seqinfo, seqnames,
                    seqlengths,
                    seqinfo,
                    Seqinfo)

importFrom(GenomeInfoDb, keepStandardChromosomes)

importFrom(IRanges, IRanges,
                    IRangesList,
                    RleList,
                    IntegerList,
                    CharacterList)

importFrom(Biostrings, DNA_BASES)

importFrom(AnnotationHub, AnnotationHub,
                          getAnnotationHubOption,
                          setAnnotationHubOption)

S3method(citation, GScores)

exportClasses(GScores)

exportMethods(citation,
              name,
              type,
              organism,
              provider,
              providerVersion,
              score,
              scores,
              gscores,
              rgscores,
              wgscores,
              qfun,
              dqfun,
              seqinfo,
              seqlengths,
              seqlevelsStyle,
              seqnames,
              gscoresNonSNRs,
              populations,
              defaultPopulation,
              "defaultPopulation<-",
              gscoresTag,
              "gscoresTag<-",
              gscoresCategory,
              "gscoresCategory<-",
              nsites,
              show)

export(GScores,
       availableGScores,
       getGScores,
makeGScoresPackage)

export(igscores)
