matchStatsWithDrugSetsID: Match identifiers between data and drug sets

View source: R/drugSetEnrichment.R

matchStatsWithDrugSetsIDR Documentation

Match identifiers between data and drug sets

Description

Match identifiers between data and drug sets

Usage

matchStatsWithDrugSetsID(
  sets,
  stats,
  col = "values",
  keyColSets = NULL,
  keyColStats = NULL
)

Arguments

sets

Named list of characters: named sets containing compound identifiers (obtain drug sets by running prepareDrugSets())

stats

Named numeric vector or either a similarPerturbations or a targetingDrugs object (obtained after running rankSimilarPerturbations or predictTargetingDrugs, respectively)

col

Character: name of the column to use for statistics (only required if class of stats is either similarPerturbations or targetingDrugs)

keyColSets

Character: column from sets to compare with column keyColStats from stats; automatically selected if NULL

keyColStats

Character: column from stats to compare with column keyColSets from sets; automatically selected if NULL

Value

Statistic values from input data and corresponding identifiers as names (if no match is found, the original identifier from argument stats is used)


nuno-agostinho/cTRAP documentation built on March 28, 2024, 3:59 p.m.