import(graphics)
import(Biobase)
import(mzR)
import(grid)

import(reshape) ## try to reduce this
importFrom(plyr, ddply, llply, adply, summarise, summarize)

importFrom(xcms, xcmsRaw) ## not needed really, using unexported xcms:::ramp* only
importFrom(preprocessCore, normalize.quantiles) 
importFrom(vsn, vsn2, meanSdPlot)
importFrom(IRanges,IRanges, sapply)
importClassesFrom(IRanges, IRanges)

export(readMzXMLData,
       readMgfData,
       readMSData,
       readMSnSet,
       readIspyData,
       formatRt,
       fillUp,
       extractSpectra,
       extractPrecSpectra,
       as.data.frame.Spectrum,
       as.ExpressionSet.MSnSet,
       combineFeatures,
       makeImpuritiesMatrix,
       precSelection,
       precSelectionTable,
       t.MSnSet)

exportClasses(pSet,
              MIAPE,
              MSnExp,
              MSnProcess,
              MSnSet,
              Spectrum, Spectrum1, Spectrum2,
              ReporterIons)

exportMethods(coerce,
              show,"[","[[",
              fileNames,
              qual,
              length,
              plot,
              plot2d,
              plotDensity,
              plotMzDelta,
              spectra,
              processingData,
              peaksCount,
              clean,
              removePeaks,
              removeReporters,
              intensity,
              mz,
              tic,
              fromFile,
              centroided,"centroided<-",
              precursorMz,
              precursorIntensity,
              precursorCharge,
              precScanNum,
              acquisitionNum,
              rtime,
              peaksCount,
              msLevel,
              collisionEnergy,
              polarity,
              trimMz,
              quantify,
              purityCorrect,
              header,
              dim,
              multiplex,
              multiLabels,
              width,
              reporterNames,"reporterNames<-",
              reporterColours,reporterColors,
              writeMgfData,
              write.exprs,
              normalise, normalize)

## methods NOT exported
## curveStats
## "precursorCharge<-"


