Giter Site home page Giter Site logo

novosparc's Introduction

Introduction

While single cell RNA-seq (scRNA-seq) gives us insights on biological systems with unprecedented resolution, as tissue dissociation is required for scRNA-seq, spatial context of gene expression is lost. novoSpaRc is a way to reconstruct the spatial context of gene expression by optimal transport. novoSpaRc is described in the paper Charting a Tissue from Single Cell Transcriptomes. The paper authors implemented this method in Python, which can be found here. This package is an R implementation of this method.

In short, what novoSpaRc does is to find a probabilistic assignment of cells to locations by aligning structural similarities between the graphs generated for single cells in expression space and physical space, with or without taking into account an in situ atlas that quantifies expression of some landmark genes in spatial locations.

Installation

This package is not yet on CRAN or Bioconductor. Please install it with

devtools::install_github("lambdamoses/novoSpaRc")

We also strongly recommend an optimized BLAS, as this package makes heavy use of matrix multiplications, and the matrices can be large for larger datasets. The default BLAS that comes with R is not optimized; an optimized BLAS can speed up matrix multiplications several times. To use an optimized BLAS from R, you can install Microsoft R Open, which uses the optimized Intel Math Kernel Library (MKL) on Windows and Linux and Acceleration Framework on MacOS for BLAS. Other optimized BLAS are OpenBLAS and ATLAS.

For MacOS users, you may change the version of BLAS used by R without reinstalling R by adding a symbolic link from libRblas.dylib to the desired BLAS. For example, for R installed from CRAN binary, here is how to make R use the BLAS from Acceleration Framework, which comes with MacOS:

cd /Library/Frameworks/R.framework/Resources/lib
ln -sf /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBLAS.dylib \
libRblas.dylib

For changing BLAS on Windows and Ubuntu, see this blog post. For Fedora, see this post.

novosparc's People

Contributors

lambdamoses avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

novosparc's Issues

Sample codes

Hi I am attempting to use the novoSpaRc package in R 3.5.0 using a matrix.mtx file from 10x genomics. However, I am having difficulty setting up the inputs and parameters for gw_assign. i am wondering if there are any sample codes out there (python/R) that could help me out a bit

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.