GenoplotR: problem with comparison object
0
0
Entering edit mode
2.0 years ago
khoojj ▴ 20

Hi, I used read.xlsx to import this file as a df to be used as the comparison object. However, whenever I checked using is.comparison, it always returned as FALSE. I am not sure what is wrong as it has the required headers (start1, end1, start2, end2 etc). I converted all intergers to numerics as well, but no success still.

I wonder if anyone could help?

Thanks

GenoplotR R • 809 views
ADD COMMENT
0
Entering edit mode

Please post any related code, it is not clear what you performed here

ADD REPLY
0
Entering edit mode

Hi, This is what I've done and is.comparison returned FALSE.


library(genoPlotR)
library(readxl)

com1 <- read_xlsx("wCle_wCfeF.xlsx")

com1 <- as.data.frame(com1)

lapply(com1[,1:4],as.numeric)

is.comparison(com1)

ADD REPLY
0
Entering edit mode

com1 is a data.frame and not a comparison object, so function logically returns FALSE, what is your issue ? If you need to create a comparison object you need

com1 <- as.comparison(data.frame(start1=com1$start1, end1=com1$end1,
                                        start2=com1$start2, end2=com1$end2))

but in your code you never created any comparison object

ADD REPLY
0
Entering edit mode

I see! I get what you mean now. I must have misunderstood the manual. Thanks!

ADD REPLY

Login before adding your answer.

Traffic: 2527 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6