• Stars
    star
    333
  • Rank 126,599 (Top 3 %)
  • Language
    R
  • License
    GNU General Publi...
  • Created over 4 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

R package implementation of Milo for testing for differential abundance in KNN graphs

miloR

Milo is a method for differential abundance analysis on KNN graph from single-cell datasets. For more details, read our manuscript. If you use Milo in your study, please cite Dann, E., Henderson, N.C., Teichmann, S.A. et al. Differential abundance testing on single-cell data using k-nearest neighbor graphs. Nat Biotechnol (2021).

Build Status Coverage R-CMD-check

Installation

## Milo is available from Bioconductor (preferred stable installation)
if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

BiocManager::install("miloR")

## Install development version
devtools::install_github("MarioniLab/miloR", ref="devel") 

Tutorials

  1. Basic Milo example on simulated dataset
  2. Milo example on mouse gastrulation dataset: this includes a demo for downstream analysis functions.
  3. Integrating miloR in scanpy/anndata workflow (see also milopy for a full workflow in python)
  4. Specifying contrasts of interest for differential abundance testing with Milo

Example work flow

An example of the Milo work flow to get started:

data(sim_trajectory)
milo.meta <- sim_trajectory$meta
milo.obj <- Milo(sim_trajectory$SCE)
milo.obj

Build a graph and neighbourhoods.

milo.obj <- buildGraph(milo.obj, k=20, d=30)
milo.obj <- makeNhoods(milo.obj, k=20, d=30, refined=TRUE, prop=0.2)

Calculate distances, count cells according to an experimental design and perform DA testing.

milo.obj <- calcNhoodDistance(milo.obj, d=30)
milo.obj <- countCells(milo.obj, samples="Sample", meta.data=milo.meta)

milo.design <- as.data.frame(xtabs(~ Condition + Sample, data=milo.meta))
milo.design <- milo.design[milo.design$Freq > 0, ]
rownames(milo.design) <- milo.design$Sample
milo.design <- milo.design[colnames(nhoodCounts(milo.obj)),]


milo.res <- testNhoods(milo.obj, design=~Condition, design.df=milo.design)
head(milo.res)

Support

For any question, feature request or bug report please create a new issue in this repository. If you have an error or code-based query, please provide the executed code and the preceding code from the point of constructing the Milo object, along with the output of your sessionInfo() - this will help us immeasurably to diagnose the issue.

Contributions

We welcome contributions and suggestions from the community (though we may not take them onboard if they don't align with our development roadmap - please don't be offended). Please submit the initial idea as an issue, which we will discuss and ask for refinements/clarifications. If we approve the idea, then please open a pull request onto the devel branch, from which we will begin a review process. To smooth the process, please note that code changes must be backwards compatible, and must include all relevant unit tests.

More Repositories

1

EmbryoTimecourse2018

Data and analysis scripts for our Embryo Timecourse paper.
HTML
64
star
2

miloDE

Framework for sensitive DE testing (using neighbourhoods)
R
57
star
3

DropletUtils

Clone of the Bioconductor repository for the DropletUtils package.
R
54
star
4

MNN2017

Code for the MNN manuscript figures
HTML
51
star
5

scran

Clone of the Bioconductor repository for the scran package.
R
37
star
6

StabMap

Mosaic single cell data integration using non-overlapping features
R
25
star
7

FurtherMNN2018

Code for further development of the mutual nearest neighbours batch correction method, as implemented in the batchelor package.
R
22
star
8

hbca

Code used to process the data of the HBCA project
R
21
star
9

sagenet

Spatial reconstruction of dissociated single-cell data
Jupyter Notebook
17
star
10

EmptyDrops2017

Code for the empty droplet and cell detection project from the HCA Hackathon.
TeX
17
star
11

Deconvolution2016

Code and manuscript files for Aaron and Karsten's deconvolution paper.
TeX
16
star
12

SpatialMouseAtlas2020

Data processing and analysis scripts for our spatial profiling of embryos using seqFISH
R
14
star
13

oor_design_reproducibility

Jupyter Notebook
14
star
14

sarlacc

The R package "sarlacc" contains a pipeline to analyse nanopore sequencing data. It trims adapter sequences, retrieves optional UMI's, clusters reads and produces a consensus sequence for each cluster after multiple sequence alignment.
R
13
star
15

geneBasisR

R package for gene selection using k-NN graphs.
R
12
star
16

oor_benchmark

A sandbox for benchmarking detection of out-of-reference cells in single-cell genomics data
Python
12
star
17

milo_analysis_2020

Code to reproduce analysis of Milo manuscript
HTML
12
star
18

MouseGastrulationData

Clone of the Bioconductor repository for the MouseGastrulationData package.
R
11
star
19

ImmuneAging2017

Code for Celia and Nils' immune aging project.
R
10
star
20

BarcodeSwapping2017

Supplementary files for paper "Detection and removal of barcode swapping in single-cell RNAseq".
HTML
10
star
21

EmptyDropsMultiome

Removing empty droplets in multiome datasets
R
10
star
22

compareSingleCell

Workflows for comparative analyses of single-cell RNA sequencing data, migrated to the OSCA book.
R
9
star
23

scHOT2019

Instructions and analysis scripts for single cell Higher Order Testing (scHOT)
HTML
9
star
24

Spermatogenesis2018

Code for Christina and Nils' project to dissect spermatogenesis in mice
R
9
star
25

PlateEffects2016

Code and manuscript files for Aaron's plate effect paper.
PostScript
8
star
26

Aneuploidy2017

Supplementary files for our Aneuploidy Detection paper
HTML
8
star
27

MammaryGland

R
7
star
28

StabMap2021

Analysis scripts for 'StabMap: Mosaic single cell data integration using non-overlapping features'
R
7
star
29

CELLOseq

Transposable element expression at unique loci in single cells with CELLO-seq
Shell
7
star
30

archive-scran

An archived version of the scran repository, see https://github.com/MarioniLab/scran for the active version.
R
6
star
31

archive-cydar

An archived version of the cydar repository, see https://github.com/MarioniLab/cydar for the active version.
R
6
star
32

simpleSingleCell

Clone of the Bioconductor repository for the simpleSingleCell workflow.
R
6
star
33

RegressionBASiCS2017

Analysis code for Nils and Catalina's regression extension
R
5
star
34

NaiveHESC2016

Code for Tobias, Ferdinand and Aaron's naive/primed hESC project.
R
5
star
35

CovidPBMC

Single-cell analysis of Covid-19 patient PBMCs
R
5
star
36

Tumorigenesis2018

R
4
star
37

EmbryoTimecourseShiny

Shiny scripts for the embryo timecourse dataset
R
4
star
38

archive-simpleSingleCell

An archived version of the simpleSingleCell repository, see https://github.com/MarioniLab/simpleSingleCell for the active version.
TeX
4
star
39

RabbitGastrulation2022

Jupyter Notebook
4
star
40

ZikaPsolaren2017

Code for Omer's Zika virus Psolaren cross-linking project.
Shell
3
star
41

mouseHeart_2020

HTML
3
star
42

SpikeIns2016

Code and manuscript files for Aaron's spike-in manuscript.
TeX
3
star
43

simpleSingleCellResults

Compiled reference results for the simpleSingleCell workflow at https://github.com/MarioniLab/simpleSingleCell.
Makefile
3
star
44

EmptyDropsMultiome2023_final

R
3
star
45

XenopusTailRegeneration2019

HTML
2
star
46

am_geneBasis

prediction of marker genes for cell typing and spatial gradients from scRNA-seq
Jupyter Notebook
2
star
47

gastruloids2022

Code for the 2022 paper "Inter-gastruloid heterogeneity revealed by single cell transcriptomics time course: implications for organoid based perturbation studies"
Jupyter Notebook
2
star
48

SingleCellRetina2016

Code for Mike and Aaron's analysis of single-cell cone photoreceptor transcriptomics data
2
star
49

TChimeras2020

HTML
2
star
50

amScripts_mouseEmbryoFISH

scripts regarding FISH data of gastrulating mouse embryo (amissarova)
HTML
2
star
51

FurtherNorm2018

Code for further development of the summation-based scaling normalization method, as implemented in the scran package.
R
2
star
52

miloDE_analysis

Folder contains scripts to generate and analyse data for miloDE
HTML
2
star
53

OesophagusSingleCell2018

Code for the single cell project on normal oesophagus and Barrett's oesophagus
R
1
star
54

milo

Differential abundance on KNN graphs
HTML
1
star
55

XenopusLimbRegeneration2020

R
1
star
56

Adipogenesis2018

R markdown notebooks and scripts for the Adipogenesis manuscript
R
1
star
57

EmbryoData2018

Shell
1
star
58

scRNAseqLungNKcells

R
1
star
59

LncScreen2018

Code for Lovorka and Aaron's lncRNA screen paper.
R
1
star
60

ExtendedMouseAtlas

1
star
61

cydar

Clone of the Bioconductor repository for the cydar package.
R
1
star
62

scSNV-seq

HTML
1
star
63

long_read_simulations

Long-read sequencing simulation evaluations
Python
1
star