-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
89 changed files
with
7,122 additions
and
6,240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,6 @@ | ||
|
||
#developing directory | ||
/models/ | ||
/checkpoint | ||
/dist/ | ||
/test/data/ | ||
/examples/ | ||
/results/ | ||
/data/ | ||
|
||
#OS or Editor files and folders | ||
.DS_Store | ||
Thumbs.db | ||
.ipynb_checkpoints/ | ||
.directory | ||
/.idea/ | ||
|
||
# Python / Byte-compiled / optimized / DLL | ||
datasets/ | ||
.idea/ | ||
__pycache__/ | ||
*.py[cod] | ||
*.so | ||
.cache | ||
*.h5ad | ||
#others | ||
*.zip | ||
#testing modules | ||
.pytest_cache/ | ||
docs/_build | ||
own_tests/ | ||
*.egg-info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,57 @@ | ||
|PyPI| |travis| |Docs| |PyPIDownloads| | ||
|PyPI| |PyPIDownloads| |Docs| |travis| | ||
|
||
scArches - single-cell architecture surgery | ||
scArches (PyTorch) - single-cell architecture surgery | ||
========================================================================= | ||
.. raw:: html | ||
|
||
<img src="https://user-images.githubusercontent.com/33202701/89729020-15f7c200-da32-11ea-989b-1b9a3283f642.png" width="900px" align="center"> | ||
|
||
scArches is a package to integrate newly produced single-cell datasets into integrated reference atlases. Our method can facilitate large collaborative projects with decentralise training and integration of multiple datasets by different groups. scArches is compatible with `scanpy <https://scanpy.readthedocs.io/en/stable/>`_, and hosts efficient implementations of all conditional generative models for single-cell data. | ||
This is a Pytorch version of scArches which can be found `here <https://github.com/theislab/scArches/>`_. scArches is a package to integrate newly produced single-cell datasets into integrated reference atlases. Our method can facilitate large collaborative projects with decentralise training and integration of multiple datasets by different groups. scArches is compatible with `scanpy <https://scanpy.readthedocs.io/en/stable/>`_, and hosts efficient implementations of all conditional generative models for single-cell data. | ||
|
||
|
||
|
||
What can you do with scArches? | ||
------------------------------- | ||
- Integrate many single-cell datasets and share the trained model and the data (if possible). | ||
- Download a pre-trained model for your atlas of interest, update it with new datasets and share with your collaborators. | ||
- Construct a customized reference by downloading a reference atlas, add a few pre-trained adaptors (datasets) and project your own data in to this customized reference atlas. | ||
- Project and integrate query datasets on the top of a reference and use latent representation for downstream tasks, e.g.: diff testing, clustering. | ||
- Construct single or multi-modal (CITE-seq) reference atlases and share the trained model and the data (if possible). | ||
- Download a pre-trained model for your atlas of interest, update it wih new datasets and share with your collaborators. | ||
- Project and integrate query datasets on the top of a reference and use latent representation for downstream tasks, e.g.:diff testing, clustering, classification | ||
|
||
|
||
What are different models? | ||
--------------- | ||
scArches is itself and algorithm to map to project query on the top of reference datasets and is applicable | ||
to different models. Here we provide a short explanation and hints when to use which model. Our models are divided into | ||
three categories: | ||
|
||
|
||
What are different models? | ||
--------------- | ||
scArches is itself and algorithm to map to project query on the top of reference datasets and is applicable | ||
to different models. Here we provide a short explanation and hints when to use which model. Our models are divided into | ||
three categories: | ||
|
||
Unsupervised | ||
This class of algortihms need no `cell type` labels, meaning that you can creat a reference and project a query without having access to cell type labeles. | ||
We implemented two algorithms: | ||
|
||
- **scVI** (`Lopez et al.,2018 <https://www.nature.com/articles/s41592-018-0229-2>`_.): Requires access to raw counts values for data integration and assumes | ||
count distribution on the data (NB, ZINB, Poission). | ||
|
||
- **trVAE** (`Lotfollahi et al.,2019 <https://arxiv.org/abs/1910.01791>`_.): It supports both normalized log tranformed or count data as input and applies additional MMD loss to have better mearging in the latent space. | ||
|
||
Supervised and Semi-supervised | ||
This class of algorithmes assume the user has access to `cell type` labels when creating the reference data and usaully perfomr better integration | ||
compared to. unsupervised methods. However, the query data still can be unlabaled. In addition to integration , you can classify your query cells using | ||
these methods. | ||
|
||
- **scANVI** (`Xu et al.,2019 <https://www.biorxiv.org/content/10.1101/532895v1>`_.): It neeeds cell type labels for reference data. Your query data can be either unlabeled or labeled. In case of unlabeled query data you can use this method to also classify your query cells using reference labels. | ||
|
||
Multi-modal | ||
These algorithms can be used to contstruct multi-modal references atlas and map query data from either modalities on the top of the reference. | ||
|
||
- **totalVI** (`Gayoso al.,2019 <https://www.biorxiv.org/content/10.1101/532895v1>`_.): This model can be used to build multi-modal CITE-seq reference atalses. | ||
Query datasets can be either from sc-RNAseq or CITE-seq. In addition to integrating query with reference one can use this model to impute the Proteins | ||
in the query datasets. | ||
|
||
Usage and installation | ||
------------------------------- | ||
|
@@ -22,7 +60,7 @@ See `here <https://scarches.readthedocs.io/>`_ for documentation and tutorials. | |
Support and contribute | ||
------------------------------- | ||
If you have a question or new architecture or a model that could be integrated into our pipeline, you can | ||
post an `issue <https://github.com/theislab/scarches/issues/new>`__. Our package supports tf/keras now but pytorch version will be added very soon. | ||
post an `issue <https://github.com/theislab/scarches/issues/new>`__ or reach us by `email <mailto:[email protected],[email protected],[email protected]>`_. | ||
|
||
|
||
Reference | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import scarches |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Data Processing | ||
=============== | ||
|
||
.. automodule:: scarches.data | ||
.. automodule:: scarches.dataset | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,39 @@ | ||
Models | ||
====== | ||
|
||
* `scArches`_ | ||
* `trVAE`_ | ||
* `scVI`_ | ||
* `scANVI`_ | ||
* `TotalVI`_ | ||
|
||
scArches | ||
trVAE | ||
----- | ||
|
||
.. autoclass:: scarches.models.TRVAE | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
scVI | ||
---- | ||
|
||
.. autoclass:: scarches.models.SCVI | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
scANVI | ||
-------- | ||
|
||
.. autoclass:: scarches.models.SCANVI | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
TotalVI | ||
-------- | ||
|
||
.. autoclass:: scarches.models.scArches | ||
.. autoclass:: scarches.models.TOTALVI | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.