MGRASTAPI: Local Representation of MG-RAST API

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

The session copy of the documentation tree of the MG-RAST API, and tools for dynamic update.

Usage

1
2
3
.MGRAST
load.MGRAST(ff=API.file())
build.MGRAST(ff=API.filename)

Arguments

ff

a file name (string or NULL)

Details

This documentation assumes familiarity with the MG-RAST API, which is described elsewhere.

The environment .MGRAST contains a nested list structure API built from the documentation-qua-specification of the MG-RAST API published at http://api.metagenomics.anl.gov. A prebuilt version of this tree is distributed with the MGRASTer package, which the routines call.MGRAST() and parse.MGRAST() consult.

build.MGRAST() builds a new, accurate-up-to-the-minute copy of the documentation tree, which may be desirable to do after a change or patch is implemented in the API. However, to take effect, a new copy must be assigned into .MGRAST (as in the examples).

load.MGRAST() returns the tree as saved in a specified file, or the version of the tree actually in use.

Value

For build.MGRAST(), the file name ff, or the new documentation tree itself when ff=NULL. For load.MGRAST(), the copy of the API documentation tree stored in ff (by default the prepackaged copy), but the copy active in the current session when ff=NULL.

Author(s)

Daniel T. Braithwaite

References

http://metagenomics.anl.gov
http://api.metagenomics.anl.gov
http://www.json.org

See Also

doc.MGRAST, call.MGRAST, parse.MGRAST

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
##  get API currently in use
API <- get ("API", .MGRAST)

##  compare to API distributed with the package
identical (API, load.MGRAST())

##  build and save a new (possibly updated) copy
build.MGRAST ("my_copy.rda")

##  load it
API <- load.MGRAST ("my_copy.rda")

##  put it into effect
assign ("API", API, .MGRAST)			

## End(Not run)

MGRASTer documentation built on May 2, 2019, 5:17 a.m.