Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version issue Matrix package (v1.5-1) #61

Open
basielcole opened this issue Oct 20, 2022 · 2 comments
Open

Version issue Matrix package (v1.5-1) #61

basielcole opened this issue Oct 20, 2022 · 2 comments

Comments

@basielcole
Copy link

Hi developers, I tried running the DiffusionMap() function on the "guo" dummy dataset:

data(guo)
dm_guo <- DiffusionMap(guo)

However, this throws the following error:

Error: as(, "dsTMatrix") is deprecated since Matrix 1.5-0; do as(., "TsparseMatrix") instead

Traceback is as follows:

  1. warning.(gettextf("as(<%s>, "%s") is deprecated since Matrix 1.5-0; do %s instead", cln1, cln2, deparse1(.as.via.virtual(Class1, Class2, quote(.)))), call. = FALSE, domain = NA)
  2. Matrix.DeprecatedCoerce(cd1, cd2)
  3. asMethod(object)
  4. as(d2, "dsTMatrix")
  5. no_censoring(dists, sigma, cb)
  6. verbose_timing(verbose, "Calculating transition probabilities", { if (censor) censoring(imputed_data, sigma, dists, censor_val, ...
  7. transition_probabilities(imputed_data, sigma, knn$dist_mat, censor, censor_val, censor_range, missing_range, verbose)
  8. DiffusionMap(guo)

This seems to be an issue with the latest version of the Matrix package, version 1.5-1.

Any idea how I could solve this issue?

Thanks in advance,

Basiel

@flying-sheep
Copy link
Collaborator

It’s a warning, not an error, so you just need to stop using options(warn=2) to turn warnings into errors, then you can ignore it.

Thank you for notifying me, I’ll make sure a future version of destiny doesn’t use deprecated APIs anymore

@basielcole
Copy link
Author

Thank you for your swift response!

Setting options(Matrix.warnDeprecatedCoerce = 0) resolved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants