This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to format matrix with negative values for NMF in R

Hi,

I have a matrix 10000x19666 of CPM values centred around 0 that I want to run NMF on. The value range is -13.09505, 13.43296.

Since NMF needs a non-negative matrix, what is the best way to prep this data for NMF. Does it make sense to just add 13.09505 to all matrix values so that it ranges from 0 to ~26 or should I scale the data between 0 and 1. Or is there another, better approach?

nmf r matrix

0 answers

No answers yet.

Log in to answer this question.