rectanglepy 0.4.5__tar.gz → 0.4.7__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.5 → rectanglepy-0.4.7}/.bumpversion.cfg +1 -1
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/PKG-INFO +1 -2
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/pyproject.toml +1 -1
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/src/rectanglepy/rectangle.py +6 -2
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/.cruft.json +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/.editorconfig +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/.github/workflows/build.yaml +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/.github/workflows/release.yaml +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/.github/workflows/release_testpypi.yaml +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/.github/workflows/test.yaml +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/.gitignore +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/.pre-commit-config.yaml +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/.readthedocs.yaml +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/CHANGELOG.md +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/LICENSE +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/README.md +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/docs/Makefile +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/docs/_static/.gitkeep +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/docs/_templates/.gitkeep +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/docs/_templates/autosummary/class.rst +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/docs/api.md +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/docs/changelog.md +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/docs/conf.py +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/docs/contributing.md +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/docs/extensions/typed_returns.py +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/docs/index.md +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/docs/make.bat +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/docs/notebooks/example.ipynb +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/docs/references.bib +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/docs/references.md +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/src/rectanglepy/__init__.py +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/src/rectanglepy/data/hao1_annotations_small.zip +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/src/rectanglepy/data/hao1_counts_small.zip +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/src/rectanglepy/data/small_fino_bulks.zip +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/src/rectanglepy/pp/__init__.py +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/src/rectanglepy/pp/create_signature.py +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/src/rectanglepy/pp/rectangle_signature.py +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/src/rectanglepy/tl/__init__.py +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/src/rectanglepy/tl/deconvolution.py +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/tests/data/TIL10_signature.txt +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/tests/data/bulk_small.csv +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/tests/data/cell_annotations_small.txt +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/tests/data/quanTIseq_SimRNAseq_mixture_smaller.csv +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/tests/data/quanTIseq_SimRNAseq_read_fractions_small.txt +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/tests/data/sc_object_small.csv +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/tests/data/signature_hao1.csv +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/tests/test_pp.py +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/tests/test_rectangle.py +0 -0
- {rectanglepy-0.4.5 → rectanglepy-0.4.7}/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.7
|
|
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
|
|
@@ -28,7 +28,6 @@ License: MIT License
|
|
|
28
28
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
29
29
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
30
30
|
SOFTWARE.
|
|
31
|
-
License-File: LICENSE
|
|
32
31
|
Requires-Python: >=3.10
|
|
33
32
|
Requires-Dist: anndata<0.10.9,>=0.8.0
|
|
34
33
|
Requires-Dist: loguru
|
|
@@ -112,7 +112,11 @@ def rectangle_consens(
|
|
|
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
|
-
|
|
115
|
+
try:
|
|
116
|
+
unkn_gene_corr = _genes_linked_to_unkn(bulks, cell_fractions["Unknown"])
|
|
117
|
+
except Exception as e:
|
|
118
|
+
logger.warning(f"Could not calculate gene correlation with unknown cell type: {e}")
|
|
119
|
+
unkn_gene_corr = None
|
|
116
120
|
else:
|
|
117
121
|
unkn_gene_corr = None
|
|
118
122
|
signatures.unkn_gene_corr = unkn_gene_corr
|
|
@@ -211,7 +215,7 @@ def load_tutorial_data() -> tuple[pd.DataFrame, pd.DataFrame, pd.DataFrame]:
|
|
|
211
215
|
|
|
212
216
|
|
|
213
217
|
def _genes_linked_to_unkn(bulks: DataFrame, unkn_fractions: pd.Series):
|
|
214
|
-
genes = bulks.columns
|
|
218
|
+
genes = bulks.columns.drop_duplicates()
|
|
215
219
|
corr = []
|
|
216
220
|
for gene in genes:
|
|
217
221
|
corr.append(unkn_fractions.corr(bulks.loc[:, gene]))
|
|
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.5 → rectanglepy-0.4.7}/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
|