Learn R Programming

immcp (version 0.9.2)

extrFP: extrFP

Description

Calculate the pathway fingerprints

Usage

extrFP(drug_target, disease_biomarker, method = "enrich")

# S4 method for BasicData extrFP(drug_target, disease_biomarker, method = "enrich")

extrFP.BasicData(drug_target, disease_biomarker, method = "enrich")

Arguments

drug_target

A data frame or list of drug target.

disease_biomarker

A character of disease biomarkers or an order ranked geneList.

method

one of "enrich" and "gsea"

Value

ScoreFP object

ScoreFP object

Examples

Run this code
# NOT RUN {
  data("drugSample")
  drug_herb <- PrepareData(drugSample$drug_herb, col1 = "drug", col2 = "herb")
  herb_target <- PrepareData(drugSample$herb_target,
                             col1 = "herb", col2 = "target",
                             format = "basket", sep = ", ")
  drug_target <- CreateBasicData(drug_herb, herb_target)
  FP <- extrFP(drug_target = drug_target,
               disease_biomarker = drugSample$disease_biomarker,
               method = "enrich")
# }

Run the code above in your browser using DataLab