Skip to content

Commit

Permalink
Merge branch 'devel'
Browse files Browse the repository at this point in the history
  • Loading branch information
deeenes committed Nov 21, 2023
2 parents 577f30d + 88f71b8 commit 4b83e3c
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 77,243 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 3.9.11
current_version = 3.11.1
commit = True
tag = True
files = DESCRIPTION
Expand Down
15 changes: 8 additions & 7 deletions R/interactions.R
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,8 @@ import_small_molecule_protein_interactions <- function(
#' @param strict_evidences Logical: restrict the evidences to the queried
#' datasets and resources. If set to FALSE, the directions and effect signs
#' and references might be based on other datasets and resources.
#' @param types Character: interaction types, such as "transcriptional",
#' "post_transcriptional", "post_translational", etc.
#' @param ... optional additional arguments
#'
#' @examples
Expand Down Expand Up @@ -1182,15 +1184,13 @@ import_all_interactions <- function(
default_fields = TRUE,
references_by_resource = TRUE,
strict_evidences = FALSE,
types = NULL,
...
){

all_datasets <-
omnipath_url('queries/interactions?format=json') %>%
safe_json(path = .) %>%
extract2('datasets') %>%
setdiff(exclude)

q_info <- query_info('interactions')
datasets <- q_info %>% extract2('datasets') %>% setdiff(exclude)
types %<>% if_null(q_info %>% extract2('types'))
# it does not make sense without the type field
fields %<>% c('type', 'dorothea_level') %>% unique

Expand All @@ -1200,7 +1200,8 @@ import_all_interactions <- function(
organism = organism,
dorothea_levels = dorothea_levels,
exclude = exclude,
datasets = all_datasets,
datasets = datasets,
types = types,
fields = fields,
default_fields = default_fields,
references_by_resource = references_by_resource,
Expand Down
2 changes: 1 addition & 1 deletion R/resources.R
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ query_info <- function(query_type) {
#' otherwise a data frame.
#'
#' @examples
#' database_summary('annotations')
#' annotations_summary <- database_summary('annotations')
#'
#' @importFrom magrittr %>%
#' @importFrom purrr map keep
Expand Down
18 changes: 3 additions & 15 deletions docs/reference/all_uniprots.html

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

Loading

0 comments on commit 4b83e3c

Please sign in to comment.