Skip to content

Error in quantile.default(x, c(TrimP, 1 - TrimP)) #15

@hugch2020

Description

@hugch2020

Hi,

I use my own data to test the procedure, in the final steps, when I run:

idx <- site_cons > 0.999
fit3 <- fitCentipede(
  Xlist = list(
    DNase = cen$mat[idx, ]
  ),
  Y = as.matrix(data.frame(
    Intercept = rep(1, nrow(cen$mat[idx, ])),
    Conservation = site_cons[idx]
  ))
)

It gives an error:

Initialization of the parameters:
Error in quantile.default(x, c(TrimP, 1 - TrimP)) : 
  missing values and NaN's not allowed if 'na.rm' is FALSE

but when I run:

fit2 <- fitCentipede(
  Xlist = list(
    DNase = cen$mat
  ),
  Y = as.matrix(data.frame(
    Intercept = rep(1, nrow(cen$mat)),
    Conservation = site_cons
  ))
)

It goes right, I don't know what's the problem, please give me some help!

Thanks.
Hu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions