PFAinit: Initialize a MATLAB server

Description Usage Arguments Details Value See Also Examples

View source: R/PFAinit.R

Description

Initialize the MATLAB server on the local computer, add the path as MATLAB workspace, and create PFA source file for MATLAB on the path.

Usage

1
PFAinit(path = getwd())

Arguments

path

A string, which means the work dictionary of MATLAB server. Default is the current R working directory getting from getwd().

Details

You must have installed MATLAB on your computer.

Value

If open MATLAB server successfully, return the access of MATLAB, the variable will be used as the parameter of runPFA.When you have done all of your work, you must close the access by close(matlab).

See Also

runPFA

Examples

1
2
3
4
5
6
7
8
9
matlab=PFAinit(path=getwd())
#now, we can run PFA on MATLAB server

#TODO
#for example:
res=runPFA(data=list(COAD_Methy, COAD_miRNA, COAD_mRNA),maxk=10,matlab=matlab)

#after working on MATLAB, we should close the MATLAB server.
close(matlab)

GaoLabXDU/CEPICS documentation built on June 9, 2020, 2:31 a.m.