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(
        BaselineCorrectionParameters.dataFiles).getValue();

    for (final RawDataFile dataFile : dataFiles) {

      Task newTask = new BaselineCorrectionTask(dataFile, parameters);
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.removeRawDataFile(file);
  }
View Full Code Here

    super(MZmineCore.getConfiguration().getRTFormat());

    setAutoButton = new JButton("Auto range");
    setAutoButton.addActionListener(this);
    RawDataFile currentFiles[] = MZmineCore.getCurrentProject()
        .getDataFiles();
    setAutoButton.setEnabled(currentFiles.length > 0);
    add(setAutoButton, 3, 0, 1, 1, 1, 0, GridBagConstraints.NONE);
  }
View Full Code Here

    Object src = event.getSource();

    if (src == setAutoButton) {
      Range rtRange = null;
      RawDataFile currentFiles[] = MZmineCore.getCurrentProject()
          .getDataFiles();
      for (RawDataFile file : currentFiles) {
        Range fileRange = file.getDataRTRange();
        if (rtRange == null)
          rtRange = fileRange;
View Full Code Here

    if (command.equals("REMOVE_ALL_MASSLISTS")) {
      MassList selectedMassLists[] = tree
          .getSelectedObjects(MassList.class);
      for (MassList massList : selectedMassLists) {
        String massListName = massList.getName();
        RawDataFile dataFiles[] = MZmineCore.getCurrentProject()
            .getDataFiles();
        for (RawDataFile dataFile : dataFiles) {
          int scanNumbers[] = dataFile.getScanNumbers();
          for (int scanNum : scanNumbers) {
            Scan scan = dataFile.getScan(scanNum);
View Full Code Here

  ChromatographicPeak[] getPeaks(int row, int column) {
    return getPeaks(xValues[column], selectedRows[row]);
  }

  ChromatographicPeak[] getPeaks(Comparable<?> xValue, PeakListRow row) {
    RawDataFile files[] = getFiles(xValue);
    ChromatographicPeak[] peaks = new ChromatographicPeak[files.length];
    for (int i = 0; i < files.length; i++) {
      peaks[i] = row.getPeak(files[i]);
    }
    return peaks;
View Full Code Here

    DefaultMutableTreeNode node = (DefaultMutableTreeNode) clickedPath
        .getLastPathComponent();
    Object clickedObject = node.getUserObject();

    if (clickedObject instanceof RawDataFile) {
      RawDataFile clickedFile = (RawDataFile) clickedObject;
      TICVisualizerModule.setupNewTICVisualizer(clickedFile);
    }

    if (clickedObject instanceof PeakList) {
      PeakList clickedPeakList = (PeakList) clickedObject;
View Full Code Here

    return getFiles(xValues[column]);
  }

  RawDataFile[] getFiles(Comparable<?> xValue) {
    if (xAxisValueSource instanceof String) {
      RawDataFile columnFile = selectedFiles[getColumnIndex(xValue)];
      return new RawDataFile[]{columnFile};
    }
    if (xAxisValueSource instanceof ParameterWrapper) {
      HashSet<RawDataFile> files = new HashSet<RawDataFile>();
      UserParameter xAxisParameter = ((ParameterWrapper) xAxisValueSource)
View Full Code Here

          "Cannot create a peak list with no data files"));
    }
    this.name = name;
    this.dataFiles = new RawDataFile[dataFiles.length];

    RawDataFile dataFile;
    for (int i = 0; i < dataFiles.length; i++) {
      dataFile = dataFiles[i];
      this.dataFiles[i] = dataFile;
    }
    peakListRows = new ArrayList<PeakListRow>();
View Full Code Here

    Object src = e.getSource();

    if (src == lookupButton) {
      ArrayList<String> currentNames = new ArrayList<String>();
      RawDataFile dataFiles[] = MZmineCore.getCurrentProject()
          .getDataFiles();
      for (RawDataFile dataFile : dataFiles) {
        int scanNums[] = dataFile.getScanNumbers();
        for (int scanNum : scanNums) {
          Scan scan = dataFile.getScan(scanNum);
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.