Package net.sf.mzmine.data

Examples of net.sf.mzmine.data.RawDataFile


  @Override
  @Nonnull
  public ExitCode runModule(@Nonnull ParameterSet parameters,
      @Nonnull Collection<Task> tasks) {

    RawDataFile dataFiles[] = parameters.getParameter(
        NeutralLossParameters.dataFiles).getValue();

    NeutralLossVisualizerWindow newWindow = new NeutralLossVisualizerWindow(
        dataFiles[0], parameters);
    MZmineCore.getDesktop().addInternalFrame(newWindow);
View Full Code Here


    // Do an additional check for centroid/continuous data and show a
    // warning if there is a potential problem
    boolean centroidData = false;
    int selectedMSLevel = getParameter(msLevel).getValue();
    RawDataFile selectedFiles[] = getParameter(dataFiles).getValue();

    // If no file selected (e.g. in batch mode setup), just return
    if (selectedFiles == null)
      return exitCode;
View Full Code Here

    if (project == currentProject)
      return;

    // Close previous data files
    if (currentProject != null) {
      RawDataFile prevDataFiles[] = currentProject.getDataFiles();
      for (RawDataFile prevDataFile : prevDataFiles) {
        prevDataFile.close();
      }
    }
View Full Code Here

  /**
   * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
   */
  public void actionPerformed(ActionEvent event) {
    Object src = event.getSource();
    RawDataFile file = menuItemFiles.get(src);
    if (file != null)
      visualizer.addRawDataFile(file);
  }
View Full Code Here

    peak = p;
    name = id;

    final int[] scanNumbers = peak.getScanNumbers();
    final RawDataFile dataFile = peak.getDataFile();
    final int peakScanNumber = peak.getRepresentativeScanNumber();

    // Copy peak data.
    final int scanCount = scanNumbers.length;
    retentionTimes = new double[scanCount];
    intensities = new double[scanCount];
    mzValues = new double[scanCount];
    int peakIndex = -1;
    for (int i = 0; i < scanCount; i++) {

      // Representative scan number?
      final int scanNumber = scanNumbers[i];
      if (peakIndex < 0 && scanNumber == peakScanNumber) {

        peakIndex = i;
      }

      // Copy RT and m/z.
      retentionTimes[i] = dataFile.getScan(scanNumber).getRetentionTime();
      final DataPoint dataPoint = peak.getDataPoint(scanNumber);
      if (dataPoint == null) {

        mzValues[i] = 0.0;
        intensities[i] = 0.0;
View Full Code Here

    Object src = e.getSource();

    MZmineProcessingModule module = moduleMenuItems.get(src);
    if (module != null) {
      RawDataFile selectedFiles[] = MZmineCore.getDesktop()
          .getSelectedDataFiles();
      PeakList selectedPeakLists[] = MZmineCore.getDesktop()
          .getSelectedPeakLists();

      ParameterSet moduleParameters = MZmineCore.getConfiguration()
View Full Code Here

    if (object instanceof RawDataFile) {

      int childCount = getChildCount(dataFilesNode);
      insertNodeInto(newNode, dataFilesNode, childCount);
      RawDataFile dataFile = (RawDataFile) object;
      int scanNumbers[] = dataFile.getScanNumbers();
      for (int i = 0; i < scanNumbers.length; i++) {
        Scan scan = dataFile.getScan(scanNumbers[i]);
        DefaultMutableTreeNode scanNode = new DefaultMutableTreeNode(
            scan);
        treeObjects.put(scan, scanNode);
        insertNodeInto(scanNode, newNode, i);
View Full Code Here

    return result;
  }

  public synchronized RawDataFile[] getDataFiles() {
    int childrenCount = getChildCount(dataFilesNode);
    RawDataFile result[] = new RawDataFile[childrenCount];
    for (int j = 0; j < childrenCount; j++) {
      DefaultMutableTreeNode child = (DefaultMutableTreeNode) getChild(
          dataFilesNode, j);
      result[j] = (RawDataFile) child.getUserObject();
    }
View Full Code Here

    DefaultMutableTreeNode node = (DefaultMutableTreeNode) path
        .getLastPathComponent();
    Object object = node.getUserObject();
    String newName = (String) value;
    if (object instanceof RawDataFile) {
      RawDataFile df = (RawDataFile) object;
      df.setName(newName);
    }
    if (object instanceof PeakList) {
      PeakList pl = (PeakList) object;
      pl.setName(newName);
    }
View Full Code Here

  @Override
  @Nonnull
  public ExitCode runModule(@Nonnull ParameterSet parameters,
      @Nonnull Collection<Task> tasks) {
    RawDataFile dataFiles[] = parameters.getParameter(
        SpectraVisualizerParameters.dataFiles).getValue();

    if ((dataFiles == null) || (dataFiles.length == 0)) {
      MZmineCore.getDesktop().displayErrorMessage(
          "Please select raw data file");
View Full Code Here

TOP

Related Classes of net.sf.mzmine.data.RawDataFile

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.