in reply to Re^2: Pair-Wise Clustering
in thread Pair-Wise Clustering

Dude, your enthusiasm is contagious, being from a bioinformatics background, however, I can't follow what you're trying to say. You plotted this similarity matrix, there're 4 pieces of data and the matrix has 25 elements is obvious from the context but what is the weight function for each of these nucleotides, since you said pairwise, which two segments are aligned against each other and which pair score is assigned to each nucleotide pairs in the combination. You "wrote a program that extracts the coordinates and corresponding values of the matrix when this value is greater than 60", show us some relevant excerpts from it.

"the data for sequence 4 in this example is not in the table above"
Don't you think it might be imperative that the table has representations of the sequences you've provided instead of showing us the sequences but showing a different table of perhaps different similarity scores. I tried mapping the sequences to the matrix to get the scores associated with each nucleotide but without the scoring weight I can't of course know how two nucleotides evaluation is assigned values representing the strength of the pairwise similarity checks.

You said there're two clusters, please shed light into how these clusters are deduced. I am asking all these questions so I can help clarifying the problem because probably someone can come with a more optimal approach than the one you're following or can guide you to what the right thing to do is.

Finally, "I am doing my best to explain my problem".
And no doubt that we'd do our best to understand and help solve the problem each in our own capacities. Check these ( First link, recursive formula.), and maybe this one More efficient way to lookup with 2 AoA's. for some initial warm-up.

Welcome to Perl Monks and have a happy Perl journey.

Update: subroutines and references are easy concepts to pick, if you give yourself 10 days to sit for them., you would know another definition for the sentence "Powerful Fun".


Excellence is an Endeavor of Persistence. Chance Favors a Prepared Mind.

Replies are listed 'Best First'.
Re^4: Pair-Wise Clustering
by SuicideJunkie (Vicar) on Oct 01, 2009 at 16:33 UTC

    The coordinates and corresponding values appear to be the row and column numbers. The 0, 1, 80 in his chart would mean row 0, column 1, value is 80.

    The clusters sound like a list of all the separate connected subgraphs. Where there are 5 nodes in the example, and a pair of nodes are connected if(M,N)>=60 in the chart.

    0 is connected to 1, 1 is connected to 2, and 2 to 3. 4 is connected to nothing, so you've got two independent sets of nodes; 0,1,2,3 vs 4.