Description Usage Arguments Details Value Author(s) References See Also Examples
Display sections of the documentation tree of the MG-RAST API.
1 |
depth |
show this many levels (single |
head |
show elements beginning only here ( |
stratum |
show all subtrees matching this name (string) |
... |
additional arguments passed to |
The MG-RAST API is locally represented with as a nested list structure or "tree".
This function is a souped-up version of str()
to help examine parts of that structure.
Usage is best understood through the examples.
A length-one character
vector is meant by "string", above.
None. Output is printed to the screen, as with str()
.
Daniel T. Braithwaite
http://metagenomics.anl.gov
http://api.metagenomics.anl.gov
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## list resources, then list all requests of all resources
doc.MGRAST()
doc.MGRAST(2)
## show detail for matrix resource (partial matching works)
doc.MGRAST (head="matrix")
doc.MGRAST (2, "mat")
## show options for all requests
doc.MGRAST (stratum="options")
doc.MGRAST (2, stratum="options")
## show options in detail for a specific request
doc.MGRAST (3, c("annot","seq","param","opt"))
## show return values of all m5nr requests in detail
doc.MGRAST (5, "m5nr", "attributes.data", nchar.max=30)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.