How to extract the result table from NMF clustering (R package 'NMF')?
1
0
Entering edit mode
4.9 years ago
yuezhao97 • 0

Hi biostars,

I'm currently doing the analysis on my RNA-seq data of ~100 cancer samples and want to cluster them. I used the NMF clustering (run times = 200) and got a consensus cluster plot. Now I want to dig deeper into my results but can't find where to get the result table telling me which sample belong to which cluster. I'm wondering if anyone could help me with extracting the result table from the NMF clustering? Any information is appreciated. Many thanks!

RNA-Seq • 5.3k views
ADD COMMENT
2
Entering edit mode
4.9 years ago

For result <- nmf(...), the matrices are in result@fit@W and result@fit@H and can also be extracted with W <- basis(result) and H <- coef(result).

ADD COMMENT
0
Entering edit mode

Thank you, Jean-Karim Heriche, for your kind and useful information.

Just one more question, I ran the basis(result) and coef(result), and they gave me two matrices consisting of the values for genes and samples for clustering. Should I pick the largest value for each sample to determine the right cluster it belongs to?

ADD REPLY
0
Entering edit mode

NMF can be seen as a form of soft clustering in which the values can be interpreted as cluster membership "strength" or relevance. By picking the largest value, you're performing hard clustering, assigning items to only one cluster.

ADD REPLY
0
Entering edit mode

OK I see. Thank you so much!

ADD REPLY

Login before adding your answer.

Traffic: 2652 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6