Skip to content

Commit

Permalink
Merge pull request #146 from KrishnaswamyLab/dev
Browse files Browse the repository at this point in the history
MAGIC v1.5.0
  • Loading branch information
scottgigante authored Feb 6, 2019
2 parents c1fa4ed + b855e5c commit 5547e90
Show file tree
Hide file tree
Showing 18 changed files with 1,143 additions and 974 deletions.
34 changes: 18 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,35 @@ sudo: required
os:
- linux

dist:
- xenial

r:
- oldrel
- release
- devel

env:
global:
- PATH="$HOME/miniconda2/bin:$HOME/miniconda3/bin:$PATH"
- RETICULATE_PYTHON="$HOME/miniconda2/bin/python"
cache:
- packages
- apt
- directories:
- $HOME/.cache/pip

before_install:
- chmod +x travis_setup.sh; ./travis_setup.sh
- $HOME/miniconda2/bin/pip install -q phate
- $HOME/miniconda3/bin/pip install -q phate
- R -e "install.packages(c('reticulate', 'devtools', 'readr', 'phateR', 'Matrix', 'ggplot2', 'viridis'), quiet=TRUE)"
- curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
- sudo python3 get-pip.py
- sudo pip3 install --upgrade pip
- pip3 install --user -q phate

install:
- cd python; $HOME/miniconda2/bin/pip install -q .
- $HOME/miniconda3/bin/pip install -q .
- cd ../Rmagic; R CMD INSTALL .; cd ..
- cd python; pip3 install --user -q .; cd ..
- cd Rmagic; R -e 'install.packages("devtools", repos="http://cloud.r-project.org")'
- R -e "devtools::install_github(repo = 'satijalab/seurat', ref = 'release/3.0')"
- R -e 'devtools::install_deps(dep = T)'; cd ..

script:
- cd Rmagic; R CMD build .
- travis_wait 30 R CMD check *tar.gz
- cd ../python; $HOME/miniconda2/bin/pip install -q .[test,doc]
- $HOME/miniconda3/bin/pip install -q .[test,doc]
- python2 setup.py test
- R CMD check *tar.gz
- cd ../python; pip3 install --user -q .[test,doc]
- python3 setup.py test
- cd doc; make html

Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ Markov Affinity-based Graph Imputation of Cells (MAGIC) is an algorithm for deno

MAGIC has been implemented in Python, Matlab, and R.

#### To get started immediately, check out our tutorials:
##### Python
* [Epithelial-to-Mesenchymal Transition Tutorial](http://nbviewer.jupyter.org/github/KrishnaswamyLab/MAGIC/blob/master/python/tutorial_notebooks/emt_tutorial.ipynb)
* [Bone Marrow Tutorial](http://nbviewer.jupyter.org/github/KrishnaswamyLab/MAGIC/blob/master/python/tutorial_notebooks/bonemarrow_tutorial.ipynb)
##### R
* [Epithelial-to-Mesenchymal Transition Tutorial](http://htmlpreview.github.io/?https://github.com/KrishnaswamyLab/MAGIC/blob/master/Rmagic/inst/examples/emt_tutorial.html)
* [Bone Marrow Tutorial](http://htmlpreview.github.io/?https://github.com/KrishnaswamyLab/MAGIC/blob/master/Rmagic/inst/examples/bonemarrow_tutorial.html)


<p align="center">
<img src="https://raw.githubusercontent.com/KrishnaswamyLab/MAGIC/master/magic.gif"/>
<br>
Expand Down
7 changes: 4 additions & 3 deletions Rmagic/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ Imports:
reticulate (>= 1.4),
ggplot2
Suggests:
readr,
Seurat (>= 3.0.0),
readr,
viridis,
phateR
phateR
License: GPL-2 | file LICENSE
LazyData: true
RoxygenNote: 6.1.0
RoxygenNote: 6.1.1
Encoding: UTF-8
3 changes: 3 additions & 0 deletions Rmagic/NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
S3method(as.data.frame,magic)
S3method(as.matrix,magic)
S3method(ggplot,magic)
S3method(magic,Seurat)
S3method(magic,default)
S3method(magic,seurat)
S3method(print,magic)
S3method(summary,magic)
export(install.magic)
Expand Down
Loading

0 comments on commit 5547e90

Please sign in to comment.