Giter VIP home page Giter VIP logo

milescsmith / reductionwrappers Goto Github PK

View Code? Open in Web Editor NEW
35.0 1.0 4.0 5.94 MB

R wrappers to connect Python dimensional reduction tools and single cell data objects (Seurat, SingleCellExperiment, etc...)

Home Page: https://milescsmith.github.io/ReductionWrappers/

License: BSD 3-Clause "New" or "Revised" License

R 100.00%
singlecellexperiment seurat wrapper singlecellexperiment-objects bioinformatics paga umap phate tsne opentsne

reductionwrappers's Introduction

R build status Build Status

ReductionWrappers

R wrappers around dimensionality reduction methods found in Python modules. Uses the reticulate package to expose functionality. Additionally provides bridging functions that let these work as drop-in replacements when working with Seurat (verions 3) and SingleCellExperiment objects. Currently wraps:

reductionwrappers's People

Contributors

dependabot[bot] avatar milescsmith avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

reductionwrappers's Issues

Does opt-SNE support FIt-SNE besides BH-SNE?

Hi,

I was wondering if opt-SNE also supports FIt-SNE besides BH-SNE implementation?
Which other methods are possible besides method = "barnes_hut"?

Thank you,
Kind regards
Jo

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/pkgdown.yaml
  • actions/checkout v2
  • r-lib/actions v1
  • r-lib/actions v1
  • actions/cache v2
pep621
pyproject.toml
  • poetry-core >=1.0.0
poetry
pyproject.toml
  • python >3.8.3,<3.10
  • anndata >=0.8.0rc1
  • umap-learn ^0.5.2
  • ForceAtlas2 ^1.0
  • pacmap ^0.5.0
  • PhenoGraph 1.6.1
  • scanpy ^1.8
  • s2a 0.3.4

  • Check this box to trigger a request for Renovate to run again on this repository

error when running PAGA

I used seurat3 object as input and got the following error:

> tmp <- PAGA(s1)
Error in py_call_impl(callable, dots$args, dots$keywords) : 
  Evaluation error: ValueError: Length mismatch: Expected axis has 0 elements, new values have 25339 elements

Detailed traceback: 
  File "/Users/xinli/miniconda3/lib/python3.7/site-packages/pandas/core/generic.py", line 5287, in __setattr__
    return object.__setattr__(self, name, value)
  File "pandas/_libs/properties.pyx", line 67, in pandas._libs.properties.AxisProperty.__set__
  File "/Users/xinli/miniconda3/lib/python3.7/site-packages/pandas/core/generic.py", line 661, in _set_axis
    self._data.set_axis(axis, labels)
  File "/Users/xinli/miniconda3/lib/python3.7/site-packages/pandas/core/internals/managers.py", line 178, in set_axis
    f"Length mismatch: Expected axis has {old_len} elements, new "
.
Called from: py_call_impl(callable, dots$args, dots$keywords)

cannot install the package

Hello, do you know how to solve this?

remotes::install_github("milescsmith/dim.reduction.wrappers")
Downloading GitHub repo milescsmith/dim.reduction.wrappers@HEAD
Error: Failed to install 'ReductionWrappers' from GitHub:
Git does not seem to be installed on your system.

thanks!

DoForceAtlas2 error: Evaluation error: Unable to convert R object to Python type.

Hi!

Thanks for making these wrappers available in R!
I have a problem running DoForceAtlas2. It spills out a matrix (below showing top 4 rows only) and through an error about converting R objects to Python.

library(Seurat)
pbmc <- ReductionWrappers::DoForceAtlas2(SeuratObject::pbmc_small)

80 x 80 Matrix of class "dgeMatrix"
               ATGCCAGAACGACT CATGGCCTGTGCAT GAACCTGATGAACC TGACTGGATTCTCA
ATGCCAGAACGACT      1.0000000      0.6666667      0.5789474      0.7142857
CATGGCCTGTGCAT      0.6666667      1.0000000      0.6216216      0.5000000
GAACCTGATGAACC      0.5789474      0.6216216      1.0000000      0.5000000
TGACTGGATTCTCA      0.7142857      0.5000000      0.5000000      1.0000000

Error in py_call_impl(callable, dots$args, dots$keywords) :
  Evaluation error: Unable to convert R object to Python type.

I would appreciate it if you could help with that.
Best,
Mohamed

errors

Thank you for sharing the script.

I ran in some errors when using PAGA function. Here is the output (cdS is a Seurat (3.0) object:
cdS <- PAGA(cdS)
[1] "pca"
Error in py_call_impl(callable, dots$args, dots$keywords) :
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
[1] "tsne"
[1] "umap"
Error in alpha$uns$paga$connectivities$todense() %>% rownames<-(levels(alpha$obs[[alpha$uns$paga$groups]])) %>% :
could not find function "%>%"

Any suggestions?
Thank you,
J

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.