Package net.sf.mzmine.modules.visualization.spectra.datasets

Examples of net.sf.mzmine.modules.visualization.spectra.datasets.ScanDataSet


    }
  }

  protected void loadPreview(SpectraPlot spectrumPlot, Scan previewScan) {

    ScanDataSet spectraDataSet = new ScanDataSet(previewScan);

    // Set plot mode only if it hasn't been set before
    // if the scan is centroided, switch to centroid mode
    if (previewScan.isCentroided()) {
      spectrumPlot.setPlotMode(PlotMode.CENTROID);
View Full Code Here


  public void loadRawData(Scan scan) {

    logger.finest("Loading scan #" + scan.getScanNumber() + " from "
        + dataFile + " for spectra visualizer");

    spectrumDataSet = new ScanDataSet(scan);

    this.currentScan = scan;

    // If the plot mode has not been set yet, set it accordingly
    if (spectrumPlot.getPlotMode() == null) {
View Full Code Here

    // We need to find a normalization factor for the new isotope
    // pattern, to show meaningful intensity range
    double mz = newPattern.getHighestIsotope().getMZ();
    Range searchMZRange = new Range(mz - 0.5, mz + 0.5);
    ScanDataSet scanDataSet = spectrumPlot.getMainScanDataSet();
    double normalizationFactor = scanDataSet
        .getHighestIntensity(searchMZRange);

    // If normalization factor is 0, it means there were no data points
    // in given m/z range. In such case we use the max intensity of
    // whole scan as normalization factor.
    if (normalizationFactor == 0) {
      searchMZRange = new Range(0, Double.MAX_VALUE);
      normalizationFactor = scanDataSet
          .getHighestIntensity(searchMZRange);
    }

    IsotopePattern normalizedPattern = IsotopePatternCalculator
        .normalizeIsotopePattern(newPattern, normalizationFactor);
View Full Code Here

   */
  protected void loadPreview(SpectraPlot spectrumPlot, Scan previewScan) {

    Scan newScan = rawDataFilter.filterScan(previewScan, filterParameters);

    ScanDataSet spectraDataSet = new ScanDataSet("Filtered scan", newScan);
    ScanDataSet spectraOriginalDataSet = new ScanDataSet("Original scan",
        previewScan);

    spectrumPlot.removeAllDataSets();

    spectrumPlot.addDataSet(spectraOriginalDataSet,
View Full Code Here

      boolean transparency) {

    XYItemRenderer newRenderer;

    if (dataSet instanceof ScanDataSet) {
      ScanDataSet scanDataSet = (ScanDataSet) dataSet;
      Scan scan = scanDataSet.getScan();
      if (scan.isCentroided())
        newRenderer = new PeakRenderer(color, transparency);
      else {
        newRenderer = new ContinuousRenderer(color, transparency);
        ((ContinuousRenderer) newRenderer)
View Full Code Here

    // Remove previous data sets
    spectrumPlot.removeAllDataSets();

    // Add scan data set
    ScanDataSet scanDataSet = new ScanDataSet(previewScan);
    spectrumPlot.addDataSet(scanDataSet, SpectraVisualizerWindow.scanColor,
        false);

    // If the scan is centroided, switch to centroid mode
    if (previewScan.isCentroided()) {
View Full Code Here

TOP

Related Classes of net.sf.mzmine.modules.visualization.spectra.datasets.ScanDataSet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.