Skip to content

Error evaluating if statement in time_amplifications.R #16

Description

@tc13

if(is_WGD == FALSE & tmp_cn$n1A_sum <= 2 & tmp_cn$n2A_sum <= 2 & tmp_cn$nMin1_A > 0 & tmp_cn$nMin2_A > 0){

Hello, I occasionally get the following error when using AmplificationTimeR

Error in if (is_WGD == FALSE & tmp_cn$n1A_sum <= 2 & tmp_cn$n2A_sum <= :
missing value where TRUE/FALSE needed
Calls: time_amplification
Execution halted

I think this is caused by at least one of the values in the if statement being NA. I am using the standard input formats from dpclust, Battenberg etc. If useful, I can attempt to work out which of the values is NA in my data

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions