rectanglepy 0.4.3__tar.gz → 0.4.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/.bumpversion.cfg +1 -1
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/PKG-INFO +1 -1
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/pyproject.toml +1 -1
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/src/rectanglepy/rectangle.py +5 -1
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/.cruft.json +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/.editorconfig +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/.github/workflows/build.yaml +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/.github/workflows/release.yaml +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/.github/workflows/release_testpypi.yaml +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/.github/workflows/test.yaml +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/.gitignore +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/.pre-commit-config.yaml +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/.readthedocs.yaml +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/CHANGELOG.md +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/LICENSE +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/README.md +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/docs/Makefile +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/docs/_static/.gitkeep +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/docs/_templates/.gitkeep +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/docs/_templates/autosummary/class.rst +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/docs/api.md +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/docs/changelog.md +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/docs/conf.py +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/docs/contributing.md +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/docs/extensions/typed_returns.py +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/docs/index.md +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/docs/make.bat +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/docs/notebooks/example.ipynb +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/docs/references.bib +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/docs/references.md +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/src/rectanglepy/__init__.py +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/src/rectanglepy/data/hao1_annotations_small.zip +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/src/rectanglepy/data/hao1_counts_small.zip +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/src/rectanglepy/data/small_fino_bulks.zip +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/src/rectanglepy/pp/__init__.py +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/src/rectanglepy/pp/create_signature.py +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/src/rectanglepy/pp/rectangle_signature.py +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/src/rectanglepy/tl/__init__.py +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/src/rectanglepy/tl/deconvolution.py +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/tests/data/TIL10_signature.txt +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/tests/data/bulk_small.csv +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/tests/data/cell_annotations_small.txt +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/tests/data/quanTIseq_SimRNAseq_mixture_smaller.csv +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/tests/data/quanTIseq_SimRNAseq_read_fractions_small.txt +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/tests/data/sc_object_small.csv +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/tests/data/signature_hao1.csv +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/tests/test_pp.py +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/tests/test_rectangle.py +0 -0
- {rectanglepy-0.4.3 → rectanglepy-0.4.5}/tests/test_tl.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: rectanglepy
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.5
|
|
4
4
|
Summary: Hierarchical deconvolution of bulk transcriptomics
|
|
5
5
|
Project-URL: Documentation, https://rectanglepy.readthedocs.io/
|
|
6
6
|
Project-URL: Source, https://github.com/ComputationalBiomedicineGroup/Rectangle
|
|
@@ -111,13 +111,17 @@ def rectangle_consens(
|
|
|
111
111
|
most_recent_signatures = signatures
|
|
112
112
|
cell_fractions = deconvolution(signatures, bulks, correct_mrna_bias, n_cpus)
|
|
113
113
|
estimations.append(cell_fractions)
|
|
114
|
-
|
|
114
|
+
if "Unknown" in cell_fractions.columns:
|
|
115
|
+
unkn_gene_corr = _genes_linked_to_unkn(bulks, cell_fractions["Unknown"])
|
|
116
|
+
else:
|
|
117
|
+
unkn_gene_corr = None
|
|
115
118
|
signatures.unkn_gene_corr = unkn_gene_corr
|
|
116
119
|
rectangle_signature_results.append(signatures)
|
|
117
120
|
consensus_estimations = pd.concat(estimations).groupby(level=0).median()
|
|
118
121
|
|
|
119
122
|
# normalize the estimations to 1, needed for the consensus
|
|
120
123
|
consensus_estimations = consensus_estimations.div(consensus_estimations.sum(axis=1), axis=0)
|
|
124
|
+
consensus_estimations[consensus_estimations < 0] = 0
|
|
121
125
|
consensus_results = ConsensusResult(estimations, rectangle_signature_results)
|
|
122
126
|
return consensus_estimations, most_recent_signatures, consensus_results
|
|
123
127
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rectanglepy-0.4.3 → rectanglepy-0.4.5}/tests/data/quanTIseq_SimRNAseq_read_fractions_small.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|