This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to read gene expression matrix in order to use Fuzzy C mean clustering function in matlab or R?

I have gene expression matrix which contain 4478 genes(row) and 104 columns(samples:24 normal vs 80 disease). How can I read my matrix in matlab to use FCM function to cluster the genes into 25 groups?

Thanks in advance

microarray ; fuzzy c mean

1 answer

In R:

> m = as.matrix(read.delim(your_matrix_file))

There are a few packages offering fuzzy c-means clustering, so the syntax for that will depend on which one you end up using.

Thank you Devon I used it however the matrix came as char

> m = as.matrix(read.delim("Breast_cancer.txt"))
>typeof(m)
>[1] "character"
>library(e1071) 
>cmeansy <- cmeans(m, 25, method="cmeans", m=1.25)

I could not cluster the matrix Brest_cancer.txt

Log in to answer this question.