That did it!
Thanks so much as always.
I emailed the question to you because I think you are an R expert based
on all the suggestions, feedback and codes I have received from you in
the past.
Yes, I do look for answers in the open
forum but when it comes to a question for which the
'.
In the end return 'r1', not cbind.
Hope this helps,
Rui Barradas
Em 04-10-2012 23:38, genome1976 escreveu:
Hi Rui,
A while ago you helped me with calculaing all possible ratios from a dataset.
This is the code I am using as suggested by you.
data - read.table(new_data.txt
, S3, S4), c(P1:P2, P1:P3, P1:P4, P1:P5, P1:P6,
P2:P1, P2:P3, P2:P4, P2:P5, P2:P6, P3:P1, P3:P2,
P3:P4, P3:P5, P3:P6, P4:P1, P4:P2, P4:P3, P4:P5,
P4:P6, P5:P1, P5:P2, P5:P3, P5:P4, P5:P6, P6:P1,
P6:P2, P6:P3, P6:P4, P6:P5)))
Rui Barradas
genome1976 wrote
Hi Rui,
Thanks once again. I
, P5:P1, P5:P2, P5:P3, P5:P4, P5:P6, P6:P1,
P6:P2, P6:P3, P6:P4, P6:P5)))
Rui Barradas
genome1976 wrote
Hi Rui,
Thanks once again. I really appreciate it.
I tried using the code with the following dataset:
Sample
P1
P2
P3
P4
P5
P6
P7
P8
P9
P10
, 11 May 2012 12:39:23 -0700 (PDT)
From: genome1976[hidden email]
To:[hidden email]
Subject: [R] Calculating all possible ratios
Message-ID:[hidden email]
Content-Type: text/plain
I have a data matrix with genes as columns and samples as rows. I want to
create all possible gene
=char))
colnames(r2) - apply(cmb, 2, function(j) paste(cn[rev(j)],
collapse=char))
cbind(r1, r2)[, order(c(colnames(r1), colnames(r2)))]
}
m1 - matrix(1:24, ncol=6)
pairwise.ratios(m1)
Rui Barradas
genome1976 wrote
Thanks so much Rui. I really appreciate all the help.
I
, P5:P4, P5:P6, P6:P1,
P6:P2, P6:P3, P6:P4, P6:P5)))
Rui Barradas
genome1976 wrote
Hi Rui,
Thanks once again. I really appreciate it.
I tried using the code with the following dataset:
Sample
P1
P2
P3
P4
P5
P6
P7
P8
P9
P10
S1
5292.9
I have a data matrix with genes as columns and samples as rows. I want to
create all possible gene ratios.Is there an elegant and fast way to do it in
R and write it to a dataframe?
Thanks for any help.
Som.
--
View this message in context:
8 matches
Mail list logo