Skip to content

turn on the existing n_iter= parameter in multicore tsne #1150

Description

@jfx319
  • Additional function parameters / changed functionality / changed defaults?
  • New analysis tool: A simple analysis tool you have been using and are missing in sc.tools?
  • New plotting function: A kind of plot you would like to seein sc.pl?
  • External tools: Do you know an existing package that should go into sc.external.*?
  • Other?

t-SNE is an interative algorithm, and takes numerous iterations to converge, particularly on larger datasets. For example, if MulticoreTSNE is installed, it accepts n_iter=30000 as opposed to the default n_iter=1000. It would be nice to have this parameter exposed. For larger datasets of say 200K cells, 1000 iterations isn't enough to fully converge to its final compact cluster shapes.

Alternatively, is it possible to pass in a kwargs to scanpy tools that wrap other algorithms, so that the advanced user can flexibly look up additional MulticoreTSNE parameters to modify, without needing to exhaustively enumerate all parameters in the scanpy wrapper?

Finally, it would be even better to have the faster FFT-based tsne to generalize to millions of cells, the most recent re-implementation being https://github.com/pavlin-policar/openTSNE

In the mean time, one has to overwrite the .X_tsne attribute after running these other tools separately.

Activity

  1. ivirshup commented on Apr 16, 2020

    @ivirshup
    Member

    Adding either more parameters or passing **kwargs arguments to an underlying tone library sounds reasonable. A PR would be welcome 😄

    So you don't have to overwrite the "X_tsne" key, you can write the coordinates to whatever key in obsm you want, then call sc.pl.embedding(adata, basis={key})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions