mzmatch.ipeak.filter.NoiseFilter <- function(JHeapSize=1425,i=NULL, o=NULL, rejected=NULL, codadw=NULL, h=NULL, v=NULL)
{
version.1 <- get("version.1",envir=.GlobalEnv)
## define the java runtime parameters
java <- "java -da -dsa -Xmn1g -Xss228k -XX:+UseParallelGC -XX:ParallelGCThreads=10"
## locate the mzmatch.jar file (it's included in the peakmlR package)
## JHeapSize - define amount of RAM availiable for java VM
JHeapSize <- paste(JHeapSize,"m",sep="")
java <- paste(java," -Xms",JHeapSize," -Xmx",JHeapSize," -cp",sep="")
if (version.1==TRUE)
{
mzmatch <- paste(java, " ", find.package("mzmatch.R"), "/java/mzmatch.jar", sep="")
} else
{
mzmatch <- paste(java, " ", find.package("mzmatch.R"), "/java/mzmatch_2.0.jar", sep="")
}
## setup the tool
tool <- paste(mzmatch, "mzmatch.ipeak.filter.NoiseFilter")
if (!is.null(i))
tool <- paste(tool, "-i", i)
if (!is.null(o))
tool <- paste(tool, "-o", o)
if (!is.null(rejected))
tool <- paste(tool, "-rejected", rejected)
if (!is.null(codadw))
tool <- paste(tool, "-codadw", codadw)
if (!is.null(h) && h==T)
tool <- paste(tool, "-h")
if (!is.null(v) && v==T)
tool <- paste(tool, "-v")
system(tool)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.