pnnl / leapR

BSD 3-Clause "New" or "Revised" License
17 stars 5 forks source link

Error from enrichment_method='enrichment_comparison' (Error) #38

Open HarkiratSohi opened 2 years ago

HarkiratSohi commented 2 years ago

Example of code that gives the error: Under Example 2 in the leapR.Rmd vignette, protdata.enrichment.order = leapR(geneset=ncipid, enrichment_method="enrichment_in_order", datamatrix=protdata, threshold=.5, primary_columns="TCGA-13-1484") The error is: Error in if (class(enr) == "try-error") { : the condition has length > 1

The error can be traced back to: Error in if (class(enr) == "try-error") { : the condition has length > 1

  1. enrichment_in_groups(geneset = geneset, background = datamatrix, method = "ks", minsize = minsize, mapping_column = id_column, abundance_column = primary_columns)
  2. .enrichment_wrapper(geneset, enrichment_method, ...)
  3. leapR(geneset = ncipid, enrichment_method = "enrichment_in_order", datamatrix = protdata, threshold = 0.5, primary_columns = "TCGA-13-1484")