methylKit icon indicating copy to clipboard operation
methylKit copied to clipboard

Error in if (length(df) == 7 & unique(sapply(df, class)[5:7]) == "integer") { : the condition has length > 1

Open HuangRuocheng opened this issue 4 months ago • 2 comments

Hi,

I have the error shown in the title. It was thown by tabix2dt in chrY_JH584300_random,

in which I used applyTbxByChr to read methDiffDB, because in WGBS it met core dump occasionally.

I checked chrY_JH584300_random methUnite data:

Image

it has only 4 CpG sites, all of which Beta value is converted to integers;

then in some where of tabix2dt generated the following data.frame:

Image

which will then be checked whether or not the 5-7 columns have the same type of class integer,

and then throw an error because 5th and 7th column have different type, leading to unique( FALSE, TRUE) and the condition has length > 1

My question is:

What dose 5th to 7th columns mean? Could I skip this check?

Thank you very much!

HuangRuocheng avatar Jun 05 '25 06:06 HuangRuocheng