rcastelo / GSVA

Gene set variation analysis
200 stars 40 forks source link

First implementation of a missing data policy for ssGSEA #175

Closed rcastelo closed 4 months ago

rcastelo commented 4 months ago

Missing data policy for ssGSEA, as per feature request in #168, it resolves #174. Checking for the presence of missing (NA) values is done through the function anyNA(). By default, such a check will only occur when the input expression data container is a base matrix, an ExpressionSet, or a SummarizedExperiment, otherwise it will be assumed that there are no missing values. This can be overridden with the argument checkNA="yes" or checkNA="no", at parameter construction. Once the missing values are identified, this PR currently propagates them through calculations (use="everything"), removes them (use="na.rm") or produces an error (use="all.obs"). If normalize=TRUE and missing values are overlooked, NA values may propagate to the normalising constant and this will produce an error.