Closed scharch closed 6 years ago
So SWNE needs at least 3 factors to create a 2D visualization. If there are only 2 factors, then all the data will lie on a line between the two factors which we don't have a visualization for yet. The FindNumFactors function unfortunately still needs a bit of work so if it's telling you 2 factors is best, I would recommend making a PCA Elbow plot and setting k to the number of PCs you would use. It's a hack, but it seems to work okay in general. I've updated the RunNMF method to throw an error if k < 3.
Hope that helps! -Yan
FindNumFactors
identifies k=2 as the best choice for my data, which makes biological sense. This may mean that swne is not the most natural choice for visualizing my data, but we are interested in identifying subclusters along that axis and I thought it was worth trying. With k=2, I get the following error:thanks