Re: [R] Hierarchical Clustering in R

2016-08-24 Thread K. Elo
Hi, what is the exact problem? I tried you code and it works fine... Best, Kimmo 24.08.2016, 10:07, Serpil ŞEN wrote: Dear Authorized Sir / Madam, I need your help on clustering with R. I have symmetric distance matrix which i created usign ClustalOmega program. and used this R codes for cl

[R] Hierarchical Clustering in R

2016-08-24 Thread Serpil ŞEN
Dear Authorized Sir / Madam, I need your help on clustering with R. I have symmetric distance matrix which i created usign ClustalOmega program. and used this R codes for clustering purpose. *data=read.table("my_distance_matrix", header=FALSE)[-1]* *attach(data)* *head(data)* *d=as.dist(data);*

Re: [R] hierarchical clustering with pearson's coefficient

2013-03-29 Thread Nicole Ford
I am not sure about your question but i did find this: http://research.med.helsinki.fi/corefacilities/proteinchem/hierarchical_clustering_basics.pdf it seems to address all three topics so perhaps the answer is in there?? On Mar 28, 2013, at 6:16 PM, Pierre Antoine DuBoDeNa wrote: > Hello, >

Re: [R] hierarchical clustering with pearson's coefficient

2013-03-29 Thread Pierre Antoine DuBoDeNa
Anyone for that question? 2013/3/28 Pierre Antoine DuBoDeNa > Hello, > > I want to use pearson's correlation as distance between observations and > then use any centroid based linkage distance (ex. Ward's distance) > > When linkage distances are formed as the Lance-Williams recursive > formul

[R] hierarchical clustering with pearson's coefficient

2013-03-28 Thread Pierre Antoine DuBoDeNa
Hello, I want to use pearson's correlation as distance between observations and then use any centroid based linkage distance (ex. Ward's distance) When linkage distances are formed as the Lance-Williams recursive formulation, they just require the initial distance between observations. See here:

Re: [R] hierarchical clustering of large dataset

2012-03-10 Thread Hans Ekbrand
On Fri, Mar 09, 2012 at 08:26:01PM -0500, Massimo Di Stefano wrote: > my target is to have 'groups of species' based on the similarity of theyr > environmental parameters, and build a dendrogram like [2] > > [2] http://massimo-timecapsule.whoi.edu//data/img/manova_clust_matlab.png > Il giorno M

Re: [R] hierarchical clustering of large dataset

2012-03-09 Thread Massimo Di Stefano
i'll try to describe the data, here [1] there is a subdatset (255 rows) 6 columns (a to f) the last columns contains the Identification Number (ID) for a particular species. the ID in f are 20 different species and it should be my 'label': 16001 11012 25011 13011 11029 11027 10022 10024 20009 11

Re: [R] hierarchical clustering of large dataset

2012-03-09 Thread Peter Langfelder
On Fri, Mar 9, 2012 at 1:50 PM, Massimo Di Stefano wrote: > Peter, > > really thanks  for your answer. > > > > install.packages("flashClust") > library(flashClust) > data <- read.csv('/Users/epifanio/Desktop/cluster/x.txt') > data <- na.omit(data) > data <- scale(data) >> mydata >                

Re: [R] hierarchical clustering of large dataset

2012-03-09 Thread Massimo Di Stefano
Peter, really thanks for your answer. install.packages("flashClust") library(flashClust) data <- read.csv('/Users/epifanio/Desktop/cluster/x.txt') data <- na.omit(data) data <- scale(data) > mydata a bc d e 1 -0.207709346 -6.61855

Re: [R] hierarchical clustering of large dataset

2012-03-09 Thread Peter Langfelder
On Thu, Mar 8, 2012 at 4:41 AM, Massimo Di Stefano wrote: > > Hello All, > > i've a set of observations that is in the form : > > a,    b,    c,    d,    e,    f > 67.12,    4.28,    1.7825,    30,    3,    16001 > 67.12,    4.28,    1.7825,    30,    3,    16001 > 66.57,    4.28,    1.355,    30,

Re: [R] hierarchical clustering of large dataset

2012-03-09 Thread Sarah Goslee
2012/3/9 Uwe Ligges : > I think the main issue of the OP is that he geneartes a 55000x55000 distance > matrix and has to calculate on it. Beside immense main memory consumption > this may take ages to complete with hierarchical clustering. Indeed. I missed that in the original email. If a non-hie

Re: [R] hierarchical clustering of large dataset

2012-03-09 Thread Uwe Ligges
I think the main issue of the OP is that he geneartes a 55000x55000 distance matrix and has to calculate on it. Beside immense main memory consumption this may take ages to complete with hierarchical clustering. Uwe Ligges On 08.03.2012 15:02, Sarah Goslee wrote: See inline: On Thu, Mar 8,

Re: [R] hierarchical clustering of large dataset

2012-03-08 Thread Sarah Goslee
See inline: On Thu, Mar 8, 2012 at 7:41 AM, Massimo Di Stefano wrote: > > Hello All, > > i've a set of observations that is in the form : > > a,    b,    c,    d,    e,    f > 67.12,    4.28,    1.7825,    30,    3,    16001 > 67.12,    4.28,    1.7825,    30,    3,    16001 > 66.57,    4.28,    

[R] hierarchical clustering of large dataset

2012-03-08 Thread Massimo Di Stefano
Hello All, i've a set of observations that is in the form : a,b,c,d,e,f 67.12,4.28,1.7825,30,3,16001 67.12,4.28,1.7825,30,3,16001 66.57,4.28,1.355,30,3,16001 66.2,4.28,1.3459,13,3,16001 66.2,4

Re: [R] hierarchical clustering within a size limit

2011-11-17 Thread petaltail
You can print out the nodes and their corresponding clusters into a file by this: > write.table (hc,file="hc_40clusters.cvs", quote=FALSE, sep=" ") -- View this message in context: http://r.789695.n4.nabble.com/hierarchical-clustering-within-a-size-limit-tp3515354p4080551.html Sent from the R

Re: [R] hierarchical clustering within a size limit

2011-05-18 Thread rna seq
Hi Peter, Thanks for your help. A second simple question that I cannot solve is the following. labels = cutree(hc, h=500) # members of cluster 1: x[labels==1] # members of cluster 2: x[labels==2] When x is >= 8 the index numbers appear in the output: [['[1]', '180066408', '180066464', '18006646

Re: [R] hierarchical clustering within a size limit

2011-05-11 Thread Peter Langfelder
On Wed, May 11, 2011 at 10:12 AM, rna seq wrote: > Hello List, > > I am trying to implement a hierarchical cluster using the hclust method > agglomerative single linkage method with a small wrinkle. I would like to > cluster a set of numbers on a number line only if they are within a distance > of

[R] hierarchical clustering within a size limit

2011-05-11 Thread rna seq
Hello List, I am trying to implement a hierarchical cluster using the hclust method agglomerative single linkage method with a small wrinkle. I would like to cluster a set of numbers on a number line only if they are within a distance of 500. I would then like to print out the members of this list

Re: [R] Hierarchical clustering using own distance matrices

2010-05-26 Thread new...@r
new...@r wrote: > > Hey Everyone! > > I wanted to carry out Hierarchical clustering using distance matrices i > have calculated ( instead of euclidean distance etc.) > > I understand as.dist is the function for this, but the distances in the > dendrogram i got by using the following script(1)

[R] Hierarchical clustering using own distance matrices

2010-05-25 Thread new...@r
Hey Everyone! I wanted to carry out Hierarchical clustering using distance matrices i have calculated ( instead of euclidean distance etc.) I understand as.dist is the function for this, but the distances in the dendrogram i got by using the following script(1) were not the distances defined in

Re: [R] hierarchical clustering with Jaccard index

2009-11-03 Thread Don McKenzie
Try "Jaccard". :-) karuna m wrote: hi, I want to do hierarchical clustering with Jaccord index. I tried to do with vegan package for finding index and hierarchical clustering with hclust function. While doing clustering it is showing an error message as "invalid distance method". I would be

[R] hierarchical clustering with Jaccard index

2009-11-02 Thread karuna m
hi, I want to do hierarchical clustering with Jaccord index. I tried to do with vegan package for finding index and hierarchical clustering with hclust function. While doing clustering it is showing an error message as "invalid distance method". I would be grateful if anyone tells how to rectify

Re: [R] hierarchical clustering - variable selection

2009-07-01 Thread Alexander.Herr
n of eight procedures" Psychometrika, 73,1, 125-144 Thanx Herry -Original Message- From: Dylan Beaudette [mailto:dylan.beaude...@gmail.com] Sent: Wednesday, July 01, 2009 2:01 PM To: Herr, Alexander Herr - Herry (CSE, Gungahlin) Cc: r-help@r-project.org Subject: Re: [R] hierarchical cluste

Re: [R] hierarchical clustering - variable selection

2009-06-30 Thread Dylan Beaudette
varclust() in the Hmisc package might be what you are looking for. Dylan On Tue, Jun 30, 2009 at 7:27 PM, wrote: > > Hi List, > > I am looking for a procedure that allows selection of variables in a > clustering attempt. > > Specifically I am searching for a way of selecting out noise variables

[R] hierarchical clustering - variable selection

2009-06-30 Thread Alexander.Herr
Hi List, I am looking for a procedure that allows selection of variables in a clustering attempt. Specifically I am searching for a way of selecting out noise variables from a set of numeric/categorical variables (or of course selecting "non-noise" variables). The procedure should work wit

[R] hierarchical clustering

2007-11-30 Thread Julia Kröpfl
hi there! i am searching for a possibility to plot the cluster fusion number against the distance in hierarchical clustering. i used the following code: distances = dist(my data[, c(1:11)], method="euclidean") eward = hclust(distances, method="ward") plot(eward, labels=my data[, 12], hang=0,cex