All Projects → immunogenomics → Harmony

immunogenomics / Harmony

Licence: other
Fast, sensitive and accurate integration of single-cell data with Harmony

Programming Languages

r
7636 projects

Labels

Projects that are alternatives of or similar to Harmony

Technicalnote
Repository to store what we have studied. 📖 We want everyone to get a job through TechnicalNote.
Stars: ✭ 206 (-7.62%)
Mutual labels:  algorithm
Play With Data Structures
慕课 liuyubobobo「玩转数据结构」课程的 Go 语言实现版本
Stars: ✭ 217 (-2.69%)
Mutual labels:  algorithm
Panyifei.github.io
请访问 http://panyifei.github.io 一个前端工程狮的打怪日常,欢迎star
Stars: ✭ 220 (-1.35%)
Mutual labels:  algorithm
Cpp Timsort
A C++ implementation of timsort
Stars: ✭ 211 (-5.38%)
Mutual labels:  algorithm
Gbox
🎨 A multi-platform graphic library
Stars: ✭ 216 (-3.14%)
Mutual labels:  algorithm
.net Big O Algorithm Complexity Cheat Sheet
Big-O complexities of common algorithms used in .NET and Computer Science.
Stars: ✭ 215 (-3.59%)
Mutual labels:  algorithm
Bezier
Algorithm to draw smooth bezier curves through a set of points
Stars: ✭ 207 (-7.17%)
Mutual labels:  algorithm
Ngraph.path
Path finding in a graph
Stars: ✭ 2,545 (+1041.26%)
Mutual labels:  algorithm
Competitive Programming
My competitive programming guide,reading materials, link to system and design interview preparation and my own coding solutions from Codechef, Leetcode,Geeks for Geeks, HackerRank , spoj, codesignal, codebyte, codeblocks and other online judges
Stars: ✭ 206 (-7.62%)
Mutual labels:  algorithm
Hackerrank
Solution to HackerRank problems
Stars: ✭ 218 (-2.24%)
Mutual labels:  algorithm
Haste
Haste: a fast, simple, and open RNN library
Stars: ✭ 214 (-4.04%)
Mutual labels:  algorithm
Javascript Utilities
一些常用算法的 JavaScript 实现
Stars: ✭ 214 (-4.04%)
Mutual labels:  algorithm
Ekalgorithms
EKAlgorithms contains some well known CS algorithms & data structures.
Stars: ✭ 2,421 (+985.65%)
Mutual labels:  algorithm
Hackerranksolutions
This is a repo for HackerRankSolutions with Swift
Stars: ✭ 213 (-4.48%)
Mutual labels:  algorithm
Javascript Total
Сборник практических вопросов, задач разного уровня сложности, сниппетов (утилит), паттерны проектирования, а также полезные ссылки по JavaScript
Stars: ✭ 214 (-4.04%)
Mutual labels:  algorithm
Swiftlcs
Swift implementation of the longest common subsequence (LCS) algorithm.
Stars: ✭ 207 (-7.17%)
Mutual labels:  algorithm
Codejam
Set of handy reusable .NET components that can simplify your daily work and save your time when you copy and paste your favorite helper methods and classes from one project to another
Stars: ✭ 217 (-2.69%)
Mutual labels:  algorithm
C Algorithms
A library of common data structures and algorithms written in C.
Stars: ✭ 2,654 (+1090.13%)
Mutual labels:  algorithm
Way To Algorithm
Algorithm Tutorial and Source Code
Stars: ✭ 221 (-0.9%)
Mutual labels:  algorithm
Develop Source
Open source for developer.(开发资源整理:Java,Android,算法,iOS,MacOS等等)
Stars: ✭ 219 (-1.79%)
Mutual labels:  algorithm

Harmony

Travis-CI Build Status AppVeyor Build Status DOI

Fast, sensitive and accurate integration of single-cell data with Harmony

Check out the manuscript in Nature Methods:

For Python users, check out the harmonypy package by Kamil Slowikowski.

System requirements

Harmony has been tested on R versions >= 3.4. Please consult the DESCRIPTION file for more details on required R packages. Harmony has been tested on Linux, OS X, and Windows platforms.

Installation

To run Harmony, open R and install directly from github using the following commands:

library(devtools)
install_github("immunogenomics/harmony")

Installation may include compiling C++ code from source, so it can take a few minutes.

Usage/Demos

We made it easy to run Harmony in most common R analysis pipelines.

Quick Start

Check out this vignette for a quick start tutorial.

PCA matrix

The Harmony algorithm iteratively corrects PCA embeddings. To input your own low dimensional embeddings directly, set do_pca=FALSE. Harmony is packaged with a small dataset

library(harmony)
my_harmony_embeddings <- HarmonyMatrix(my_pca_embeddings, meta_data, "dataset", do_pca=FALSE)

Normalized gene matrix

You can also run Harmony on a sparse matrix of library size normalized expression counts. Harmony will scale these counts, run PCA, and finally perform integration.

library(harmony)
my_harmony_embeddings <- HarmonyMatrix(normalized_counts, meta_data, "dataset")

Seurat

You can run Harmony within your Seurat workflow. You'll only need to make two changes to your code.

  1. Run Harmony with the RunHarmony() function
  2. In downstream analyses, use the Harmony embeddings instead of PCA.

For example, run Harmony and then UMAP in two lines.

seuratObj <- RunHarmony(seuratObj, "dataset")
seuratObj <- RunUMAP(seuratObj, reduction = "harmony")

For details, check out these vignettes:

MUDAN

You can run Harmony with functions from the MUDAN package. For more, details, check out this vignette.

Harmony with two or more covariates

Harmony can integrate over multiple covariates. To do this, specify a vector covariates to integrate.

my_harmony_embeddings <- HarmonyMatrix(
  my_pca_embeddings, meta_data, c("dataset", "donor", "batch_id"),
  do_pca = FALSE
)

Do the same with your Seurat object:

seuratObject <- RunHarmony(seuratObject, c("dataset", "donor", "batch_id"))

Advanced

The examples above all return integrated PCA embeddings. We created a more advanced tutorial that explores the internal data structures used in the Harmony algorithm.

Reproducing results from manuscript

Code to reproduce Harmony results from the Korsunsky et al 2019 manuscript will be made available on github.com/immunogenomics/harmony2019.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].