Format for distance matrix for running hclust on R
"Shalini Sridhar" <[email protected]> Thu, 29 Jun 2006 09:07:54 +0000
| Newsgroups | gmane.science.biology.informatics.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi
I am using R for a simple hierarchical clustering method for some binding site similarities of some ligands.I already have a distance matrix computed. I am using hclust method to run it. (Thus I dont want to use dist method) Could anyone tell me what format does my distance matrix need to be for hclust to run?
I used the read.table method to read the file as a tab delimited lower triangular matrix. And this i am sending to hclust to be clustered. How ever this is the error i get :
Error in if (n < 2) stop("must have n >= 2 objects to cluster") :
argument is of length zero
Am I doing this right?
Also my distance matrix contains the X and Y labels that will need to be displayed on the tree leaves.
Could anyone please help me out?
Thanks
Shalini
_______________________________________________
Biodevelopers mailing list
[email protected]
https://bioinformatics.org/mailman/listinfo/biodevelopers