combine_mm_hs_ppi: combine_mm_hs_ppi

Description Usage Arguments Details Value Examples

View source: R/spagi_master.R

Description

This function combines the PPI data for both "mmusculus" and "hsapiens" species created by the get_ppi_for_molecules function.

Usage

1

Arguments

mm.ppi

The PPI data for "mmusculus" species generated by the function get_ppi_for_molecules.

hs.ppi

The PPI data for "hsapiens" species generated by the function get_ppi_for_molecules.

RP.protein

A vector containg the same receptor (RP) proteins that are used in the function get_ppi_for_molecules.

KN.protein

A vector containg the same kinase (KN) proteins that are used in the function get_ppi_for_molecules.

TF.protein

A vector containg the same transcription factor (TF) proteins that are used in the function get_ppi_for_molecules.

Details

This function combines the PPI data for both "mmusculus" and "hsapiens" species created by the get_ppi_for_molecules function.

Value

This function returns a list consisting of the combined filtered PPI data, the RP proteins and the TF proteins of the combined filtered PPI data to generate the pathway path.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Need two folder at working directory for downloading stringdb files for each species - stringdb_mouse, stringdb_human.
## It takes some time to download the data, and then can reuse the downloaded data.
## Here we will use RP.protein, KN.protein, TF.protein protein parameters. These data are automatically loaded with the package. You can modify these parameters.
## We will generate PPI data for two species - "mmusculus" and "hsapiens" by calling the function get_ppi_for_molecules two times.
## Then we will combine these two PPI data sets by using the combine_mm_hs_ppi function that will be used later on to generate the pathway path data.

## Get PPI data for the protein molecules of species "mmusculus".
mm.ppi<-get_ppi_for_molecules(RP.protein, KN.protein, TF.protein, species="mmusculus")
## Get PPI data for the protein molecules of species "hsapiens".
hs.ppi<-get_ppi_for_molecules(RP.protein, KN.protein, TF.protein, species="hsapiens")
## Now combine and get the filtered PPI and the RP and TF proteins of the combined filtered PPI
comb.ppi.result<-combine_mm_hs_ppi(mm.ppi, hs.ppi, RP.protein, KN.protein, TF.protein)
head(summary(comb.ppi.result))

VCCRI/SPAGI documentation built on May 23, 2019, 1:08 p.m.