This is a test version of Biostars. For the public version, visit https://www.biostars.org.
GenoplotR: problem with comparison object

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

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

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)

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

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

0 answers

No answers yet.

Log in to answer this question.