|
| 1 | + |
1 | 2 | #####################################
|
2 | 3 | ###### parameter class generics #####
|
3 | 4 | #####################################
|
@@ -632,8 +633,8 @@ setGeneric("as_data_frame",function(M,...)standardGeneric("as_data_frame"))
|
632 | 633 |
|
633 | 634 | #' Citations for an object
|
634 | 635 | #'
|
635 |
| -#' All \code{struct} objects have a "citations" slot, which is a character array of |
636 |
| -#' references relevant to the object. The \code{citations} method gathers |
| 636 | +#' All \code{struct} objects have a "citations" slot, which is a list of |
| 637 | +#' references in bibtex format. The \code{citations} method gathers |
637 | 638 | #' citations from an object and all \code{struct} objects that it inherits to generate
|
638 | 639 | #' a complete list.
|
639 | 640 | #' @param obj a struct object
|
@@ -661,3 +662,18 @@ setGeneric("citations",function(obj)standardGeneric("citations"))
|
661 | 662 | #' @export
|
662 | 663 | setGeneric("libraries",function(obj)standardGeneric("libraries"))
|
663 | 664 |
|
| 665 | +#' Ontology for an object |
| 666 | +#' |
| 667 | +#' All \code{struct} objects have an "ontology" slot, which is a list of |
| 668 | +#' ontology items for the object. The \code{ontology} method gathers |
| 669 | +#' ontology items from an object and all \code{struct} objects that it inherits to generate |
| 670 | +#' a complete list. |
| 671 | +#' @param obj a struct object |
| 672 | +#' @param cache a named list of ontology_terms for offline use. Terms from the cache are search |
| 673 | +#' based on the name of the list items matching the ontology id. If cache=NULL then the OLS API is used to lookup terms. |
| 674 | +#' @examples |
| 675 | +#' M = example_model() |
| 676 | +#' ontology(M,cache=NULL) |
| 677 | +#' @rdname ontology |
| 678 | +#' @export |
| 679 | +setGeneric("ontology",function(obj,cache=NULL)standardGeneric("ontology")) |
0 commit comments