Skip to content

Commit

Permalink
update STRING endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
moosa-r committed Sep 9, 2023
1 parent e35db03 commit 2d248fc
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
27 changes: 25 additions & 2 deletions R/stringdb.R
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ rba_string_network_image <- function(ids,
use_query_labels = FALSE,
hide_disconnected_nodes = FALSE,
hide_structure_pics = FALSE,
flat_nodes = FALSE,
node_labels_center = FALSE,
node_labels_font_size = 12,
...) {
## Load Global Options
.rba_ext_args(..., ignore_save = TRUE)
Expand Down Expand Up @@ -239,7 +242,15 @@ rba_string_network_image <- function(ids,
list(arg = "hide_disconnected_nodes",
class = "logical"),
list(arg = "hide_structure_pics",
class = "logical")),
class = "logical"),
list(arg = "flat_nodes",
class = "logical"),
list(arg = "node_labels_center",
class = "logical"),
list(arg = "node_labels_font_size",
class = "numeric",
min_val = 5,
max_val = 50)),
cond = list(list(quote(length(ids) > 100 && is.null(species)),
sprintf("You supplied %s IDs. Please Specify the species (Homo Sapiens NCBI taxonomy ID is 9606).",
length(ids)))
Expand Down Expand Up @@ -280,7 +291,19 @@ rba_string_network_image <- function(ids,
"1"),
list("block_structure_pics_in_bubbles",
hide_structure_pics,
"1"))
"1"),
list("flat_node_design",
flat_nodes,
"1"),
list("flat_node_design",
flat_nodes,
"1"),
list("center_node_labels",
node_labels_center,
"1"),
list("custom_label_font_size",
node_labels_font_size != 12,
node_labels_font_size))

## make file path
if (image_format == "svg") {
Expand Down
3 changes: 3 additions & 0 deletions man/rba_string_network_image.Rd

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

0 comments on commit 2d248fc

Please sign in to comment.