Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
d-callan committed Feb 22, 2024
1 parent 2799e0c commit 4219e6c
Show file tree
Hide file tree
Showing 22 changed files with 209 additions and 58 deletions.
12 changes: 9 additions & 3 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ export(KPartiteNetwork)
export(Link)
export(LinkList)
export(Network)
export(Node)
export(NodeId)
export(NodeIdList)
export(NodeList)
export(Partition)
export(Partitions)
export(TwoByTwoTable)
export(adjustToViewport)
Expand All @@ -45,6 +43,7 @@ export(findViewport)
export(fishersTest)
export(getDuplicateLinks)
export(getIsolatedNodes)
export(getPartitionIndex)
export(getQuadrantValues)
export(heatmap)
export(heatmap.dt)
Expand Down Expand Up @@ -76,8 +75,8 @@ export(sensitivity)
export(smoothedMean)
export(specificity)
export(writeJSON)
export(writeNetworkJSON)
exportClasses(ContingencyTable)
exportClasses(KPartiteNetwork)
exportClasses(Link)
exportClasses(LinkList)
exportClasses(Network)
Expand All @@ -87,6 +86,12 @@ exportClasses(NodeIdList)
exportClasses(NodeList)
exportClasses(Partitions)
exportClasses(TwoByTwoTable)
exportMethods(KPartiteNetwork)
exportMethods(Link)
exportMethods(LinkList)
exportMethods(Network)
exportMethods(NodeIdList)
exportMethods(NodeList)
exportMethods(allStats)
exportMethods(chiSqResults)
exportMethods(fishersTest)
Expand All @@ -106,6 +111,7 @@ exportMethods(relativeRisk)
exportMethods(sensitivity)
exportMethods(specificity)
exportMethods(toJSON)
exportMethods(writeNetworkJSON)
import(data.table)
import(veupathUtils)
importFrom(S4Vectors,SimpleList)
Expand Down
8 changes: 4 additions & 4 deletions R/methods-Network.R
Original file line number Diff line number Diff line change
Expand Up @@ -193,17 +193,17 @@ setMethod(toJSONGeneric, "Network", function(object, named = c(TRUE, FALSE)) {
return(tmp)
})

#' Write json to tmp file
#' Write network json to tmp file
#'
#' This function returns the name of a json file which it has
#' written an object out to.
#' @param x an object to convert to json and write to a tmp file
#' @param verbose boolean that declares if logging is desired
#' @return character name of a tmp file w ext *.json
#' @export
setGeneric("writeJSON", function(x, pattern = NULL, verbose = c(TRUE, FALSE)) standardGeneric("writeJSON"))
setGeneric("writeNetworkJSON", function(x, pattern = NULL, verbose = c(TRUE, FALSE)) standardGeneric("writeNetworkJSON"))

#' Write json to local tmp file
#' Write network json to local tmp file
#'
#' This function returns the name of a json file which it has
#' written a Network object out to.
Expand All @@ -213,7 +213,7 @@ setGeneric("writeJSON", function(x, pattern = NULL, verbose = c(TRUE, FALSE)) st
#' @return character name of a tmp file w ext *.json
#' @importFrom jsonlite toJSON
#' @export
setMethod("writeJSON", "Network", function(x, pattern=NULL, verbose = c(TRUE, FALSE)) {
setMethod("writeNetworkJSON", "Network", function(x, pattern=NULL, verbose = c(TRUE, FALSE)) {
net <- x
verbose <- veupathUtils::matchArg(verbose)

Expand Down
12 changes: 11 additions & 1 deletion man/KPartiteNetwork-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/Link-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions man/Link.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/LinkList-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions man/LinkList.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions man/Network-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/Node-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions man/Node.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 0 additions & 15 deletions man/NodeId.Rd

This file was deleted.

8 changes: 5 additions & 3 deletions man/NodeIdList.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/NodeList-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/Partition-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/Partitions-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/Partitions.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions man/getPartitionIndex.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions man/toJSON-KPartiteNetwork-method.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions man/toJSON-Partitions-method.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4219e6c

Please sign in to comment.