Skip to content

Commit 44303ef

Browse files
committed
corrected functions cyto_create_gn_style and cyto_create_cpm_style and examples
1 parent 4c0e41f commit 44303ef

5 files changed

+8
-2
lines changed

NEWS

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ dendroNetwork 0.5.2 (development)
66
### BUG FIXES
77
* corrected bug in cyto_clean_styles()
88
* corrected error in wuchwerte(). It is not using the anos1 dataset from dplR anymore
9+
* corrected error in cyto_create_gn_style and cyto_create_cpm_style
910
### DEPRECATED AND DEFUNCT
1011
* dev-folder removed, since this was not needed (created by biocthis)
1112
### DOCUMENTATION FIXES
@@ -16,6 +17,7 @@ dendroNetwork 0.5.2 (development)
1617
* added Vignette on Cytoscape use
1718
* moved information for using big datasett to seperate vignette
1819
* updated README: added more installion instructions
20+
* corrected examples in cyto_create_gn_style and cyto_create_cpm_style
1921
### CONTINUOUS INTEGRATION
2022

2123
dendroNetwork 0.5.1 (2024-02-10)

R/cyto_create_cpm_style.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#' sim_table_hol <- sim_table(hol_rom)
1717
#' g_hol <- dendro_network(sim_table_hol)
1818
#' hol_com_cpm_k3 <- clique_community_names(g_hol, k = 3)
19+
#' cyto_create_graph(g_hol)
1920
#' cyto_create_cpm_style(g_hol, k = 3, com_k = hol_com_cpm_k3)
2021
#' }
2122
#'
@@ -27,7 +28,7 @@ cyto_create_cpm_style <- function(graph_input, k = 3, com_k = NULL, style_name =
2728
stop()
2829
}
2930
if ("GreyNodesLabel" %in% RCy3::getVisualStyleNames() == FALSE) {
30-
RCy3::importVisualStyles(filename = system.file("extdata", "NetworkStyles.xml", package = "DendroNetwork"))
31+
RCy3::importVisualStyles(filename = system.file("extdata", "NetworkStyles.xml", package = "dendroNetwork"))
3132
}
3233
if (is.numeric(k)) {
3334
if (style_name == "auto") {

R/cyto_create_gn_style.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#' sim_table_hol <- sim_table(hol_rom)
1515
#' g_hol <- dendro_network(sim_table_hol)
1616
#' g_hol_gn <- gn_names(g_hol)
17+
#' cyto_create_graph(g_hol)
1718
#' cyto_create_gn_style(g_hol, gn_coms = g_hol_gn)
1819
#' }
1920
#'
@@ -25,7 +26,7 @@ cyto_create_gn_style <- function(graph_input, gn_coms = NULL, style_name = "auto
2526
stop()
2627
}
2728
if ("GreyNodesLabel" %in% RCy3::getVisualStyleNames() == FALSE) {
28-
RCy3::importVisualStyles(filename = system.file("extdata", "NetworkStyles.xml", package = "DendroNetwork"))
29+
RCy3::importVisualStyles(filename = system.file("extdata", "NetworkStyles.xml", package = "dendroNetwork"))
2930
}
3031
if (style_name == "auto") {
3132
style_name <- paste0(substitute(graph_input), "_GN")

man/cyto_create_cpm_style.Rd

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/cyto_create_gn_style.Rd

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)