milor
R package implementation of Milo for testing for differential abundance in KNN graphs
Science Score: 49.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 2 DOI reference(s) in README -
○Academic publication links
-
✓Committers with academic emails
6 of 13 committers (46.2%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.3%) to scientific vocabulary
Keywords from Contributors
Repository
R package implementation of Milo for testing for differential abundance in KNN graphs
Basic Info
- Host: GitHub
- Owner: MarioniLab
- License: gpl-3.0
- Language: R
- Default Branch: master
- Homepage: https://bioconductor.org/packages/release/bioc/html/miloR.html
- Size: 60.3 MB
Statistics
- Stars: 391
- Watchers: 8
- Forks: 23
- Open Issues: 16
- Releases: 0
Metadata Files
README.md
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).
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
- Basic Milo example on simulated dataset
- Milo example on mouse gastrulation dataset: this includes a demo for downstream analysis functions.
- Integrating miloR in scanpy/anndata workflow (see also
milopyfor a full workflow in python) - Specifying contrasts of interest for differential abundance testing with Milo
- Using a mixed effect model for dependendent samples
Example work flow
An example of the Milo work flow to get started:
{r}
data(sim_trajectory)
milo.meta <- sim_trajectory$meta
milo.obj <- Milo(sim_trajectory$SCE)
milo.obj
Build a graph and neighbourhoods.
{r}
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.
```{r} 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 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. If you are seeking general advice on Milo, differential abundance testing, etc, then please create a new post on
the Bioconductor forum.
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.
Reporting issues
Milo is under (semi)continuous development, but it has also been around for a couple of years. That means (hopefully) most of the common bugs have been
identified. If you have an error or issue to raise, first make sure you are using the most up to date version, either via Bioconductor, or from the Main
branch of the repo. Please also make sure to check if your problem has arisen before by looking at both the open and closed issues. If neither of these
solve your problem, then please open a new issue describing the problem in full, with code and a minimally reproducible example. Don't forget to include
the output of your sessionInfo() as well. Thanks.
Owner
- Name: Marioni Laboratory
- Login: MarioniLab
- Kind: organization
- Location: Cambridge, United Kingdom
- Repositories: 55
- Profile: https://github.com/MarioniLab
A central repository for projects in John Marioni's group
GitHub Events
Total
- Issues event: 41
- Watch event: 47
- Issue comment event: 96
- Push event: 14
- Pull request event: 1
- Fork event: 2
- Create event: 1
Last Year
- Issues event: 41
- Watch event: 47
- Issue comment event: 96
- Push event: 14
- Pull request event: 1
- Fork event: 2
- Create event: 1
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| MikeDMorgan | m****n@c****k | 373 |
| EmmaDann | e****n@s****l | 91 |
| Emma Dann | e****6@s****k | 30 |
| akluzer | a****r@c****k | 18 |
| MikeDMorgan | m****n@a****k | 14 |
| nickhir | n****r@y****e | 9 |
| Nitesh Turaga | n****a@g****m | 6 |
| Emma Dann | 3****n | 6 |
| akluzer | 9****r | 6 |
| Kelvin | k****6@s****k | 3 |
| J Wokaty | j****y@s****u | 2 |
| J Wokaty | j****y | 2 |
| PeteHaitch | p****y@g****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 7 months ago
All Time
- Total issues: 112
- Total pull requests: 13
- Average time to close issues: 4 months
- Average time to close pull requests: about 1 month
- Total issue authors: 84
- Total pull request authors: 3
- Average comments per issue: 3.46
- Average comments per pull request: 1.0
- Merged pull requests: 13
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 21
- Pull requests: 1
- Average time to close issues: 2 months
- Average time to close pull requests: less than a minute
- Issue authors: 19
- Pull request authors: 1
- Average comments per issue: 1.71
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- DarioS (8)
- gianfilippo (5)
- RunyuXia (4)
- ShashTrip1 (3)
- mainharryHR (3)
- MikeDMorgan (3)
- emdann (2)
- Dario-Rocha (2)
- mdeea (2)
- honghh2018 (2)
- zktuong (2)
- LinearParadox (2)
- connerlambden (1)
- KatjaRM (1)
- caitsimop (1)
Pull Request Authors
- MikeDMorgan (12)
- emdann (2)
- nickhir (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/cache v2 composite
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v1 composite
- r-lib/actions/setup-r v1 composite
- R >= 4.0.0 depends
- edgeR * depends
- BiocGenerics * imports
- BiocNeighbors * imports
- BiocParallel * imports
- BiocSingular * imports
- Matrix >= 1.3 imports
- RColorBrewer * imports
- S4Vectors * imports
- SingleCellExperiment * imports
- SummarizedExperiment * imports
- cowplot * imports
- dplyr * imports
- ggbeeswarm * imports
- ggplot2 * imports
- ggraph * imports
- ggrepel * imports
- grDevices * imports
- gtools * imports
- igraph * imports
- irlba * imports
- limma * imports
- matrixStats * imports
- methods * imports
- patchwork * imports
- stats * imports
- stringr * imports
- tibble * imports
- tidyr * imports
- BiocStyle * suggests
- MASS * suggests
- MouseGastrulationData * suggests
- MouseThymusAgeing * suggests
- RCurl * suggests
- covr * suggests
- curl * suggests
- graphics * suggests
- knitr * suggests
- magick * suggests
- mvtnorm * suggests
- rmarkdown * suggests
- scater * suggests
- scran * suggests
- scuttle * suggests
- testthat * suggests
- uwot * suggests