Entering edit mode
6.9 years ago
onemore100iq
▴
20
Hi, I am trying to do
pair<-pairwise.comparison(data.mas5,
"celline",
c("c.oh","5AzadC.48h"),
data.raw)
but it gave me this error
Error in pms[, x] : subscript out of bounds
This is the covdesc I am using, it is tablimited with no header for the first column
celline dose time
GSM230899.CEL.gz Melanocytes c 0h
GSM230901.CEL.gz MelJuSo c 0h
GSM230903.CEL.gz UACC903 c 0h
GSM230905.CEL.gz C8161 c 0h
GSM230907.CEL.gz Neo6 c 0h
GSM230909.CEL.gz WM1205 c 0h
GSM230911.CEL.gz WM35 c 0h
GSM230900.CEL.gz Melanocytes 5AzadC 48h
GSM230902.CEL.gz MelJuSo 5AzadC 48h
GSM230904.CEL.gz UACC903 5AzadC 48h
GSM230906.CEL.gz C8161 5AzadC 48h
GSM230908.CEL.gz Neo6 5AzadC 48h
GSM230910.CEL.gz WM1205 5AzadC 48h
GSM230912.CEL.gz WM35 5AzadC 48h
and this is the 2 lines before pairwise comparison
dfr <-data.frame("c.oh"=c("Melanocytes","MelJuSo","UACC903","C8161","Neo6","WM1205","WM35"),
"5AzadC.48h"=c("Melanocytes","MelJuSo","UACC903","C8161","Neo6","WM1205","WM35"))
expgroups=data.frame("c.oh","5AzadC.48h")
and its class is data.frame
I tried to solve it for days but did not know how would you please help me to figure out why this error and how to fix it Thanks
Any help, I been stuck in for too long, please any help.
I added code markup to your post for increased readability. You can do this by selecting the text and clicking the 101010 button. When you compose or edit a post that button is in your toolbar, see image below:
I've also edited your title. Including "bioinformatics" is not necessary since everything here should be bioinformatics.
Take a look at the help message and examples of pairwise.comparison using
?pairwise.comparison
. That might give you a clue what's wrong.Can you post the line where you declare pms?
@OP: There was a similar post by you and you didn't resolve this: C: Bioinformatics and pairwise.comparison and i am not sure if you need raw data in pairwise comparison. Run without raw data.
Example code that works is:
Thanks all. But once i read the covdesc differentally as follow: covdesc <- read.csv("covdesc.txt", sep="\t", header=T, stringsAsFactors = F) it worked from there to the end. Thanks again