merge_pw_deg: merge disease and molecules degs for the disease-enrciehed...

Description Usage Arguments Value Examples

View source: R/merge_pw_deg.R

Description

merge disease and molecules degs for the disease-enrciehed pathways

Usage

1
merge_pw_deg(m2dObj, disease_pw, disease_pvalue = 0.05)

Arguments

m2dObj

raw m2d object

disease_pw

result of find_disease_pw()

disease_pvalue

deg cutoff for disease degs

Value

merged degs of disease and molecules

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
library(M2D)
dir_disease <- system.file("extdata",
  "demo_BRCA_disease.csv",
  package = "M2D"
)
disease <- read.csv(dir_disease)
dir_molecule <- system.file("extdata",
  "demo_molecules_321_12320.csv",
  package = "M2D"
)
molecules <- data.table::fread(dir_molecule,
  data.table = FALSE
) %>%
  tibble::column_to_rownames("V1")
m2dObj <- list(
  disease = disease,
  molecule = molecules
)
data("find_disease_pw_result")
merge_pw_degs <- merge_pw_deg(m2dObj,
  disease_pw = find_disease_pw_result$term_df
)
head(merge_pw_degs)

lishensuo/M2D documentation built on Jan. 4, 2022, 9:44 a.m.