#!/usr/bin/env Rscript
#
# This file is part of the `OmnipathR` R package
#
# Copyright
# 2018-2024
# Saez Lab, Uniklinik RWTH Aachen, Heidelberg University
#
# File author(s): Alberto Valdeolivas
# Dénes Türei (turei.denes@gmail.com)
# Attila Gábor
#
# Distributed under the MIT (Expat) License.
# See accompanying file `LICENSE` or find a copy at
# https://directory.fsf.org/wiki/License:Expat
#
# Website: https://r.omnipathdb.org/
# Git repo: https://github.com/saezlab/OmnipathR
#
#' Protein-protein interactions from Vinayagam 2011
#'
#' Retrieves the Supplementary Table S6 from Vinayagam et al. 2011.
#' Find out more at \url{https://doi.org/10.1126/scisignal.2001699}.
#'
#' @return A data frame (tibble) with interactions.
#'
#' @examples
#' vinayagam_interactions <- vinayagam_download()
#' vinayagam_interactions
#' # # A tibble: 34,814 x 5
#' # `Input-node Gen. `Input-node Gen. `Output-node Ge. `Output-node Ge.
#' # <chr> <dbl> <chr> <dbl>
#' # 1 C1orf103 55791 MNAT1 4331
#' # 2 MAST2 23139 DYNLL1 8655
#' # 3 RAB22A 57403 APPL2 55198
#' # 4 TRAP1 10131 EXT2 2132
#' # 5 STAT2 6773 COPS4 51138
#' # # . with 34,804 more rows, and 1 more variable:
#' # # `Edge direction score` <dbl>
#'
#' @importFrom magrittr %>% %T>%
#' @export
vinayagam_download <- function(){
.slow_doctest()
'vinayagam' %>%
archive_extractor(
path = '2001699_Tables_S1_S2_S6.xls',
reader_param = list(
sheet = 'S6',
progress = FALSE
)
) %T>%
load_success()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.