Package org.rosuda.JRI

Examples of org.rosuda.JRI.Rengine.eval()


      // Create an empty xsAnnotate.
      rEngine.eval("an <- xsAnnotate(xs, sample=1)", false);

      // Group by RT.
      rEngine.eval("an <- groupFWHM(an, sigma=" + fwhmSigma
          + ", perfwhm=" + fwhmPercentage + ')', false);
      progress += progressInc;

      // Identify isotopes.
      rEngine.eval(
View Full Code Here


      rEngine.eval("an <- groupFWHM(an, sigma=" + fwhmSigma
          + ", perfwhm=" + fwhmPercentage + ')', false);
      progress += progressInc;

      // Identify isotopes.
      rEngine.eval(
          "an <- findIsotopes(an, maxcharge=" + isoMaxCharge
              + ", maxiso=" + isoMaxCount + ", ppm="
              + isoMassTolerance.getPpmTolerance() + ", mzabs="
              + isoMassTolerance.getMzTolerance() + ')', false);
      progress += progressInc;
View Full Code Here

              + isoMassTolerance.getMzTolerance() + ')', false);
      progress += progressInc;

      // Split groups by correlating peak shape (need to set xraw to raw
      // data).
      rEngine.eval(
          "an <- groupCorr(an, calcIso=TRUE, xraw=xRaw, cor_eic_th="
              + corrThreshold + ", pval=" + corrPValue + ')',
          false);
      progress += progressInc;
View Full Code Here

              + corrThreshold + ", pval=" + corrPValue + ')',
          false);
      progress += progressInc;

      // Get the peak list.
      rEngine.eval("peakList <- getPeaklist(an)", false);

      // Extract the pseudo-spectra and isotope annotations from the peak
      // list.
      final REXP spectraExp = rEngine
          .eval("as.integer(peakList$pcgroup)");
View Full Code Here

      // Get the peak list.
      rEngine.eval("peakList <- getPeaklist(an)", false);

      // Extract the pseudo-spectra and isotope annotations from the peak
      // list.
      final REXP spectraExp = rEngine
          .eval("as.integer(peakList$pcgroup)");
      final REXP isotopeExp = rEngine.eval("peakList$isotopes");

      // Add identities.
      if (spectraExp != null) {
View Full Code Here

      // Extract the pseudo-spectra and isotope annotations from the peak
      // list.
      final REXP spectraExp = rEngine
          .eval("as.integer(peakList$pcgroup)");
      final REXP isotopeExp = rEngine.eval("peakList$isotopes");

      // Add identities.
      if (spectraExp != null) {

        addPseudoSpectraIdentities(peaks, spectraExp, isotopeExp);
View Full Code Here

    final double[][] peaks;
    synchronized (RUtilities.R_SEMAPHORE) {

      // Load XCMS library.
      if (rEngine.eval("require(xcms)").asBool().isFALSE()) {

        throw new IllegalStateException(
            "The \"xcms\" R package couldn't be loaded - is it installed in R?");
      }
View Full Code Here

        throw new IllegalStateException(
            "The \"xcms\" R package couldn't be loaded - is it installed in R?");
      }

      // Check version of XCMS.
      if (rEngine
          .eval("packageVersion('xcms') >= '" + XCMS_VERSION + '\'')
          .asBool().isFALSE()) {

        throw new IllegalStateException(
            "An old version of the XCMS package is installed in R - please update XCMS to version "
View Full Code Here

      // Set vectors.
      rEngine.assign("scantime", scanTime);
      rEngine.assign("intensity", intensity);

      // Initialize.
      rEngine.eval("mz <- " + mz, false);
      rEngine.eval("numPoints <- length(intensity)", false);

      // Construct xcmsRaw object
      rEngine.eval("xRaw <- new(\"xcmsRaw\")", false);
      rEngine.eval("xRaw@tic <- intensity", false);
View Full Code Here

      rEngine.assign("scantime", scanTime);
      rEngine.assign("intensity", intensity);

      // Initialize.
      rEngine.eval("mz <- " + mz, false);
      rEngine.eval("numPoints <- length(intensity)", false);

      // Construct xcmsRaw object
      rEngine.eval("xRaw <- new(\"xcmsRaw\")", false);
      rEngine.eval("xRaw@tic <- intensity", false);
      rEngine.eval("xRaw@scantime <- scantime * " + SECONDS_PER_MINUTE,
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.