Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaojieqiu committed Apr 11, 2021
1 parent d573af7 commit 0f8e07d
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ sphinx:
configuration: docs/source/conf.py

python:
version: 3.6
version: 3.7
install:
- requirements: docs/requirements.txt
4 changes: 2 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pandas>=0.25.1
scipy>=1.0
scikit-learn>=0.19.1
cvxopt>=1.2.3
anndata==0.7.5
anndata>=0.7.6
loompy>=3.0.5
matplotlib>=3.1.0
trimap>=1.0.11
Expand All @@ -28,4 +28,4 @@ seaborn>=0.9.0
colorcet>=2.0.1
tqdm
python-igraph>=0.7.1
pynndescent>=0.4.8
pynndescent>=0.5.2
9 changes: 5 additions & 4 deletions dynamo/preprocessing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,11 @@ def cook_dist(model, X, good):

# ---------------------------------------------------------------------------------------------------
# preprocess utilities
def filter_genes_by_pattern(adata: anndata.AnnData,
patterns: tuple = ('MT-', 'RPS', 'RPL', 'MRPS', 'MRPL', 'ERCC-'),
drop_genes: bool = False
) -> Union[anndata.AnnData, None]:
def filter_genes_by_pattern(
adata: anndata.AnnData,
patterns: tuple = ('MT-', 'RPS', 'RPL', 'MRPS', 'MRPL', 'ERCC-'),
drop_genes: bool = False,
) -> Union[list, None]:
"""Utility function to filter mitochondria, ribsome protein and ERCC spike-in genes, etc."""
logger = LoggerManager.gen_logger("dynamo-utils")

Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ build-backend = 'flit.buildapi'

[tool.flit.metadata]
module = 'dynamo'
author = 'Xiaojie Qiu, Yan Zhang'
author = 'Xiaojie Qiu, Yan Zhang, Ke Ni'
author-email = '[email protected]'
home-page = 'https://github.com/aristoteleo/dynamo-release'
license = 'BSD'
description-file = 'README.md'
requires-python = '>=3.6'
requires-python = '>=3.7'
requires = ['numpy>=1.18.1',
'pandas>=0.25.1',
'scipy>=1.0',
'scikit-learn>=0.19.1',
'cvxopt>=1.2.3',
'anndata>=0.7.4',
'anndata>=0.7.6',
'loompy>=3.0.5',
'matplotlib>=3.1.0',
'trimap>=1.0.11',
'setuptools',
'numdifftools>=0.9.39',
'umap-learn>=0.4.3',
'umap-learn>=0.5.1',
'hdbscan>=0.8.26',
'PATSY>=0.5.1',
'statsmodels>=0.9.0',
Expand All @@ -30,7 +30,7 @@ requires = ['numpy>=1.18.1',
'colorcet>=2.0.1',
'tqdm',
'python-igraph>=0.7.1',
'pynndescent>=0.4.8',
'pynndescent>=0.5.2',
'joblib',
'setuptools']
requires-extra = { doc = ['docutils'], test = ['pytest', 'sympy>=1.4'], spatial = ['pysal>2.0.0'], dimension_reduction = ['fitsne>=1.0.1'], bigdata_visualization = ["datashader>=0.9.0", "bokeh>=1.4.0", "holoviews>=1.9.2"] }
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pandas>=0.25.1
scipy>=1.0
scikit-learn>=0.19.1
cvxopt>=1.2.3
anndata==0.7.5
anndata>=0.7.6
loompy>=3.0.5
matplotlib>=3.1.0
trimap>=1.0.11
Expand All @@ -18,6 +18,6 @@ seaborn>=0.9.0
colorcet>=2.0.1
tqdm
python-igraph>=0.7.1
pynndescent>=0.4.8
pynndescent>=0.5.2
pre-commit
networkx
2 changes: 1 addition & 1 deletion sinfo-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
anndata==0.7.5
anndata>=0.7.6
scanpy==1.6.0
sinfo==0.3.1
IPython==7.20.0
Expand Down

0 comments on commit 0f8e07d

Please sign in to comment.