If you have not already installed the R goose, please read the installation instructions.
Startup
- Start R (if it is not already running).
- At the R prompt, type these commands:
library(gaggle)
gaggleInit()
source("http://gaggle.systemsbiology.net/R/gaggleUtil.R")
You can put those lines in a file called .Rprofile in your home directory. This will cause R
to connect to Gaggle every time it is started.
- For a simple test:
showGoose ('boss')
You will see the Gaggle Boss appear.
- For more detail and examples, please examine this
vignette,
or examine the scenarios listed in the
cribsheet.
Receive
After successful initialization, gaggle matrix and name list
broadcasts are available in your R console via these commands:
myMatrix <- getMatrix ()
or
myList <- getNameList ()
In each case, the most recently broadcasted matrix or name list will be returned.
broadcast
Broadcast a matrix or a list of names to the gaggle.
broadcast (matrix1)
broadcast (matrix2, "my matrix")
broadcast (transpose (matrix3), "transposed matrix")
nameList = c ("VNG0101G", "VNG0177G", "VNG0286C")
broadcast (nameList)
related commands