Re: [R] fast way to compare two matrices of combinations

2008-03-13 Thread Mark W Kimpel
Thanks to all for their suggestions. I apologize for not supplying a self-contained example, I should not post questions when I'm on the way out the door. Martin's suggestion should work, but I need to put in on our high-performance system next week. On my local 64-bit Linux box with 4GB of RA

Re: [R] fast way to compare two matrices of combinations

2008-03-13 Thread Charles C. Berry
On Thu, 13 Mar 2008, Mark W Kimpel wrote: > I have a list (length 750), each element containing a vector of unique > strings (unique gene ids), with length up to ~40 (median 15). I want to > compile a matrix of all possible triplets and their frequency within > gene elements. Using combn and a lot

Re: [R] fast way to compare two matrices of combinations

2008-03-13 Thread Patrick Burns
One thing that will probably speed things enormously is to not grow objects (all.triplets, etc.). Instead create them to be roughly the right size and do something like double their size if they get full. Patrick Burns [EMAIL PROTECTED] +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poe

Re: [R] fast way to compare two matrices of combinations

2008-03-13 Thread Erik Iverson
Hello Mark - It may help if you provide a (small) set of example input and what you'd like as your output. Best, Erik Iverson Mark W Kimpel wrote: > I have a list (length 750), each element containing a vector of unique > strings (unique gene ids), with length up to ~40 (median 15). I want to

[R] fast way to compare two matrices of combinations

2008-03-13 Thread Mark W Kimpel
I have a list (length 750), each element containing a vector of unique strings (unique gene ids), with length up to ~40 (median 15). I want to compile a matrix of all possible triplets and their frequency within gene elements. Using combn and a lot of looping, I am accomplishing this but it is