Skip to content

Setting trans to 2 and K > 1 leads to error in flowClust #27

@HVinther

Description

@HVinther

I installed flowClust using pak::pkg_install. The reported version is 3.46.0.

Here is a quick reproducible example,

set.seed(42)

df<-data.frame(
  "x" = runif(100),
  "y" = runif(100)
)

fc<-flowClust(df, trans = 2, K = 2)

With the traceback,

Image

The error seems to come from this snippet

flowClust/R/flowClust.R

Lines 803 to 806 in 24c0ffd

prior$order<-obj$oorder;
if(trans==1&obj$lambda==1){
obj$mu<-rbox(obj$mu,obj$lambda)
}

Perhaps the condition should be

all(c(trans==1,obj$lambda==1))

or something similar?

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