Skip to content

Commit

Permalink
Merge pull request #197 from DendrouLab/feature/dependencies_cleanup
Browse files Browse the repository at this point in the history
simplify dependencies
  • Loading branch information
Zethson authored Feb 27, 2024
2 parents 34bdd03 + b733f85 commit 903af0d
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 52 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
### fixed

- fixed error in `vis`
- error occurred when only wanting to plot continuous or categorical variables (or neither), not both
- error occurred when only wanting to plot continuous or categorical variables (or neither), not both

### dependencies

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## Overview

Panpipes is a set of computational workflows designed to automate multimodal single-cell and spatial transcriptomic analyses by incorporating widely-used Python-based tools to perform quality control, preprocessing, integration, clustering, and reference mapping at scale.
Panpipes is a set of computational workflows designed to automate multimodal single-cell and spatial transcriptomic analyses by incorporating widely-used Python-based tools to perform quality control, preprocessing, integration, clustering, and reference mapping at scale.
Panpipes allows reliable and customisable analysis and evaluation of individual and integrated modalities, thereby empowering decision-making before downstream investigations.

**See our [documentation](https://panpipes-pipelines.readthedocs.io/en/latest/) and our [preprint](https://www.biorxiv.org/content/10.1101/2023.03.11.532085v2)**
Expand Down Expand Up @@ -45,4 +45,4 @@ bioRxiv 2023.03.11.532085; doi: https://doi.org/10.1101/2023.03.11.532085](https
## Contributors

Created and Maintained by Charlotte Rich-Griffin and Fabiola Curion.
Additional contributors: Sarah Ouologuem, Devika Agarwal, Lilly May, Kevin Rue-Albrecht.
Additional contributors: Sarah Ouologuem, Devika Agarwal, Lilly May, Kevin Rue-Albrecht, Lukas Heumos.
5 changes: 3 additions & 2 deletions panpipes/funcs/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,10 @@ def ridgeplot(adata, features, layer=None, splitplot=3, bandwidth=0.1):
ax.yaxis.set_tick_params(labelleft=True)
ax.set_yticks(np.arange(len(features_sub)))
ax.set_yticklabels(features_sub)
for tick in ax.get_yticklabels():
tick.set_fontsize(10)
for tick in ax.yaxis.get_major_ticks():
tick.label.set_fontsize(10)
tick.label.set_verticalalignment("bottom")
tick.label1.set_verticalalignment("bottom")

fig.tight_layout()
return fig, ax
Expand Down
5 changes: 0 additions & 5 deletions panpipes/python_scripts/run_preprocess_prot.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@


args, opt = parser.parse_known_args()
# args = argparse.Namespace(filtered_mudata='test.h5mu',
# bg_mudata='/well/cartography/users/zsj686/non_cart_projects/005-multimodal_scpipelines/ingest/test_raw.h5mu',
# channel_col=None, normalisation_methods='clr,dsb', clr_margin='0', quantile_clipping='True', figpath='./figures/prot', save_mtx=False, save_mudata_path='test.h5mu')
save_mtx=pnp.pp.check_for_bool(args.save_mtx)

norm_methods = args.normalisation_methods.split(',')
Expand All @@ -85,9 +82,7 @@
sc.set_figure_params(scanpy=True, fontsize=14, dpi=300, facecolor='white', figsize=(5,5))



# load filtered data - if use_muon is True this will return a mudata object, else returns an mudata object

L.info("reading filtered mudata object")
try:
all_mdata = mu.read(args.filtered_mudata)
Expand Down
54 changes: 12 additions & 42 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,62 +10,48 @@ description = "Panpipes - multimodal single cell pipelines"
readme = "README.md"

classifiers = [
# Pick your license as you wish
"License :: OSI Approved :: BSD License",

# Optional
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
"Development Status :: 3 - Alpha",

# Indicate who your project is intended for
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: R"
]

requires-python = ">= 3.11"
requires-python = ">= 3.10"

dependencies = [
"anndata>=0.8.0",
"apsw",
"bbknn",
"cgatcore",
"drmaa",
"gevent",
"harmonypy",
"jax",
"jaxlib",
"leidenalg",
"louvain",
"matplotlib<=3.7.3",
"mofapy2",
"mudata>=0.2.1",
"muon",
"numpy>=1.22.4",
"openpyxl",
"packaging",
"pandas>=1.0",
"paramiko",
"pep8",
"pysam",
"pynndescent",
"pytest",
"pyyaml",
"ruffus",
"scanorama",
"scanpy>=1.9.1",
"leidenalg",
"louvain",
"scib",
"seaborn<=0.12.2",
"scikit-misc",
"scirpy",
"scrublet",
"scvi-tools>=1.1.1",
"sqlalchemy"]
"sqlalchemy",
]

[project.optional-dependencies]
dev = [
"packaging",
"pytest",
"twine",
"build"
]
notebook = [
"jupyter",
"jupyterlab"
Expand All @@ -75,29 +61,13 @@ spatial = [
"cell2location",
"tangram-sc"
]
pypi_upload = [
"twine",
"build"
]

# The following would provide a command line executable called `sample`
# which executes the function `entry` from this package when invoked.
[project.scripts] # Optional
[project.scripts]
panpipes = "panpipes:entry.main"

# This is configuration specific to the `setuptools` build backend.
# If you are using a different build backend, you will need to change this.
[tool.setuptools]
# If there are data files included in your packages that need to be
# installed, specify them here.
package-data = {"panpipes" = ["panpipes/*/*.yml", "R_scripts/*.R", "resources/*"]}


[build-system]
# These are the assumed default build requirements from pip:
# https://pip.pypa.io/en/stable/reference/pip/#pep-517-and-518-support
requires = ["setuptools>=43.0.0", "wheel"]
build-backend = "setuptools.build_meta"


#template for this file from https://github.com/pypa/sampleproject/blob/main/pyproject.toml

0 comments on commit 903af0d

Please sign in to comment.