Skip to content

RunHarmony appears to be ignoring max_iter (and max.iter.harmony) #271

@brianlamere

Description

@brianlamere

Issue Description

I was using a snipped from a couple vignettes and it was still using max.iter.harmony, but got the warning that max.iter.harmony was deprecated and also that RunHarmony did not converge after the default max of 25 (I had it set to 50). Initially I thought maybe it was counting the double pass, such that my 50/2 was still 25, so I set it to 100 and used max_iter instead. This had no impact on getting the warning about not converging in 25 iterations.

Reproducing Code Example

myobj <- RunHarmony(myobj, group.by.vars = "orig.ident", dims.use = RH_dims,
                      max_iter = 100, ncores = 8)

Error Message

Warning message:
did not converge in 25 iterations

Additional Comments

ncores also seems to have no effect, as despite blas being available the process still ran single-threaded. It was fast enough compared to other tasks, so this isn't as much of a concern about not being able to do iterations until it converges

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