Skip to content

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

@HuangRuocheng

Description

@HuangRuocheng

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!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions