rcastelo / GSVA

Gene set variation analysis
200 stars 40 forks source link

121 refactoring code of the internal implementation of gsva methods #126

Closed axelklenk closed 11 months ago

axelklenk commented 11 months ago

This PR resolves #121 by replacing the internal function .gsva_newAPI() with genuine gsva() S4 methods for parameter objects (temporarily the new API had been implemented by dispatching to S4 methods only to call the same internal function).

Also there are now methods for wrapping (or rather, coercing) the results from sparse matrices passed as dgCMatrix objects, in an effort to make the return datatype match the input datatype.

In addition, existing unit tests (with the temporary exception of DelayedMatrix) have been modified to make use of the new gsva() API as the penultimate step to porting package-internal code (the final step will be the Shiny app in igsva()) before making the now deprecated old API defunct.