How to read gene expression matrix in order to use Fuzzy C mean clustering function in matlab or R?
1
0
Entering edit mode
6.4 years ago
AAhmed ▴ 20

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.5k views
ADD COMMENT
0
Entering edit mode
6.4 years ago

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.

ADD COMMENT
0
Entering edit mode

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

ADD REPLY

Login before adding your answer.

Traffic: 2942 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