spacr 0.0.1__py3-none-any.whl → 0.0.6__py3-none-any.whl

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.
@@ -0,0 +1,118 @@
1
+ Metadata-Version: 2.1
2
+ Name: spacr
3
+ Version: 0.0.6
4
+ Summary: Spatial phenotype analysis of crisp screens (SpaCr)
5
+ Home-page: https://github.com/EinarOlafsson/spacr
6
+ Author: Einar Birnir Olafsson
7
+ Author-email: olafsson@med.umich.com
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ License-File: LICENSE
12
+ Requires-Dist: dgl
13
+ Requires-Dist: torch >=2.2.1
14
+ Requires-Dist: torchvision >=0.17.1
15
+ Requires-Dist: torch-geometric >=2.5.1
16
+ Requires-Dist: numpy >=1.26.4
17
+ Requires-Dist: pandas >=2.2.1
18
+ Requires-Dist: statsmodels >=0.14.1
19
+ Requires-Dist: scikit-image >=0.22.0
20
+ Requires-Dist: scikit-learn >=1.4.1
21
+ Requires-Dist: seaborn >=0.13.2
22
+ Requires-Dist: matplotlib >=3.8.3
23
+ Requires-Dist: shap >=0.45.0
24
+ Requires-Dist: pillow >=10.2.0
25
+ Requires-Dist: imageio >=2.34.0
26
+ Requires-Dist: scipy >=1.12.0
27
+ Requires-Dist: ipywidgets >=8.1.2
28
+ Requires-Dist: mahotas >=1.4.13
29
+ Requires-Dist: btrack >=0.6.5
30
+ Requires-Dist: trackpy >=0.6.2
31
+ Requires-Dist: cellpose >=3.0.6
32
+ Requires-Dist: IPython >=8.18.1
33
+ Requires-Dist: opencv-python-headless >=4.9.0.80
34
+ Requires-Dist: umap-learn >=0.5.6
35
+ Requires-Dist: ttkthemes >=3.2.2
36
+ Requires-Dist: xgboost >=2.0.3
37
+ Requires-Dist: PyWavelets >=1.6.0
38
+ Requires-Dist: torchcam >=0.4.0
39
+ Requires-Dist: ttf-opensans >=2020.10.30
40
+ Requires-Dist: customtkinter >=5.2.2
41
+ Requires-Dist: lxml >=5.1.0
42
+ Provides-Extra: dev
43
+ Requires-Dist: pytest >=3.9 ; extra == 'dev'
44
+ Provides-Extra: full
45
+ Requires-Dist: opencv-python ; extra == 'full'
46
+ Provides-Extra: headless
47
+ Requires-Dist: opencv-python-headless ; extra == 'headless'
48
+
49
+ [![PyPI version](https://badge.fury.io/py/spacr.svg)](https://badge.fury.io/py/spacr)
50
+ [![Python version](https://img.shields.io/pypi/pyversions/spacr)](https://pypistats.org/packages/spacr)
51
+ [![Licence: GPL v3](https://img.shields.io/github/license/EinarOlafsson/spacr)](https://github.com/EinarOlafsson/spacr/blob/master/LICENSE)
52
+ [![repo size](https://img.shields.io/github/repo-size/EinarOlafsson/spacr)](https://github.com/EinarOlafsson/spacr/)
53
+
54
+ # SpaCr
55
+ <table>
56
+ <tr>
57
+ <td>
58
+
59
+ Spatial phenotype analysis of CRISPR-Cas9 screens (SpaCr). The spatial organization of organelles and proteins within cells constitutes a key level of functional regulation. In the context of infectious disease, the spatial relationships between host cell structures and intracellular pathogens are critical to understand host clearance mechanisms and how pathogens evade them. Spacr is a Python-based software package for generating single cell image data for deep-learning sub-cellular/cellular phenotypic classification from pooled genetic CRISPR-Cas9 screens. Spacr provides a flexible toolset to extract single cell images and measurements from high content cell painting experiments, train deep-learning models to classify cellular/ subcellular phenotypes, simulate and analyze pooled CRISPR-Cas9 imaging screens.
60
+
61
+ </td>
62
+ <td>
63
+
64
+ <img src="spacr/logo_spacr.png" alt="SPACR Logo" title="SPACR Logo" width="600"/>
65
+
66
+ </td>
67
+ </tr>
68
+ </table>
69
+
70
+ ## Features
71
+
72
+ - **Generate Masks:** Generate cellpose masks of cell, nuclei and pathogen objects.
73
+
74
+ - **Object Measurements:** Measurements for each object including scikit-image-regionprops, intensity percentiles, shannon-entropy, pearsons and manders correlations, homogenicity and radial distribution. Measurements are saved to a sql database in object level tables.
75
+
76
+ - **Crop Images:** Objects (e.g. cells) can be saved as PNGs from the object area or bounding box area of each object. Object paths are saved in an sql database that can be annotated and used to train CNNs/Transformer models for classefication tasks.
77
+
78
+ - **Train CNNs or Transformers:** Train Torch Convolutional Neural Networks (CNNs) or Transformers to classify single object images. Train Torch models with IRM/ERM, checkpointing.
79
+
80
+ - **Manual Annotation:** Supports manual annotation of single cell images and segmentation to refine training datasets for training CNNs/Transformers or cellpose, respectively.
81
+
82
+ - **Finetune Cellpose Models:** Adjust pre-existing Cellpose models to your specific dataset for improved performance.
83
+
84
+ - **Timelapse Data Support:** Track objects in timelapse image data.
85
+
86
+ - **Simulations:** Simulate spatial phenotype screens.
87
+
88
+ - **Sequencing:** Map FASTQ reads to barecode and gRNA barecode metadata.
89
+
90
+ - **Misc:** Analyze Ca oscillation, recruitment, infection rate, plaque size/count.
91
+
92
+ ## Installation
93
+
94
+ Requires Tkinter for graphical user interface features.
95
+
96
+ ### Ubuntu
97
+
98
+ Before installing spacr, ensure Tkinter is installed:
99
+
100
+ (Tkinter is included with the standard Python installation on macOS, and Windows)
101
+
102
+ On Linux:
103
+
104
+ ```
105
+ sudo apt-get install python3-tk
106
+ ```
107
+
108
+ install spacr with pip
109
+
110
+ ```
111
+ pip install spacr
112
+ ```
113
+
114
+ Run spacr GUI:
115
+
116
+ ```
117
+ gui
118
+ ```
@@ -0,0 +1,39 @@
1
+ spacr/__init__.py,sha256=xN6y7zYr7wqDxqYQNVFPJqwuqs7heANFktXmwzzBPFw,889
2
+ spacr/__main__.py,sha256=L3Dnk-YG3lULeaMxD1mS-_t89g4qWrJ7bnpBvNiQhUE,283
3
+ spacr/alpha.py,sha256=Y95sLEfpK2OSYKRn3M8eUOU33JJeXfV8zhrC4KnwSTY,35244
4
+ spacr/annotate_app.py,sha256=_KlDYbnaKr_VvghMWSr6gWbP_lByPghGLiCfEIJ48so,19500
5
+ spacr/chris.py,sha256=YlBjSgeZaY8HPy6jkrT_ISAnCMAKVfvCxF0I9eAZLFM,2418
6
+ spacr/cli.py,sha256=507jfOOEV8BoL4eeUcblvH-iiDHdBrEVJLu1ghAAPSc,1800
7
+ spacr/core.py,sha256=EIhsuSyJQPxq1UfH3VNh3ubt403W1Ahvnz44pX35BCc,166307
8
+ spacr/deep_spacr.py,sha256=ljIakns6q74an5QwDU7j0xoj6jRCAz-ejY0QHj9X0d8,33193
9
+ spacr/foldseek.py,sha256=w7M7qRYvP5syJlPErQkHzPLOkiyLN77E0XyL3NiFZwI,33540
10
+ spacr/get_alfafold_structures.py,sha256=n0g8gne-oyAV3Uo6qxZoJq5X1cUUyD8u0pOC_W2PX40,3541
11
+ spacr/graph_learning.py,sha256=M7KW1J72LA4hLfVNVBOqxf_4z9tXi-UyoZfhaLJXqSE,11986
12
+ spacr/graph_learning_lap.py,sha256=MyNRLb63gsjBlui-ByZ0anHugYulL6M-OsGm8rnGBmE,3385
13
+ spacr/gui.py,sha256=zu-i8ezLJ03jNRACK7CRgNhkM8g8-pJFwZ-OSDFzsPg,6498
14
+ spacr/gui_2.py,sha256=FPlmvGm1VIood_YBnG44IafgjjaVfagybTnjVEOs5Ig,3299
15
+ spacr/gui_classify_app.py,sha256=LY33wott1mR7AFYwBI9ZQZYY16lBB-wuaY4pL_poaQ0,7884
16
+ spacr/gui_mask_app.py,sha256=WKkAH0jv-SnfaZdJ8MkC7mkUIVSSrNE8lUfH3QBvUak,9747
17
+ spacr/gui_measure_app.py,sha256=5vjjds5NFaOcE8XeuWDug9k-NI4jbTrwp54sJ7DNaNI,9625
18
+ spacr/gui_sim_app.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
+ spacr/gui_utils.py,sha256=JRWwmGEEVSPgs0UtZRukdNwIUJepbP675_Fvs5qocPk,49718
20
+ spacr/io.py,sha256=8jpnsUOZMxfhGamduiq4BXgUtfh80kF4R_S-8N3EIrw,109305
21
+ spacr/logger.py,sha256=7Zqr3TuuOQLWT32gYr2q1qvv7x0a2JhLANmZcnBXAW8,670
22
+ spacr/mask_app.py,sha256=jlKmj_evveIkkyH3PYEcAshcLXN0DOPWB1oc4hAwq9E,44201
23
+ spacr/measure.py,sha256=KOBmrVE9nrKwIoXG16wV1sy5nSj9EOa_FhK7i431V-A,55325
24
+ spacr/old_code.py,sha256=jw67DAGoLBd7mWofVzRJSEmCI1Qrff26zIo65SEkV00,13817
25
+ spacr/plot.py,sha256=9tQEDDIHzex-T90VaS_PfcHwbWfYEYfMeKkgEdlK6ko,62045
26
+ spacr/sequencing.py,sha256=OiRK6gpEkuEhKoUJcU-BXWDmz4RkDxKeJCE_C6w1zJc,50503
27
+ spacr/sim.py,sha256=fpkOs-VBU40xBFuSoO97aTewQWPSYolg5C_PkjeQm_Y,71344
28
+ spacr/timelapse.py,sha256=5TNmkzR_urMxy0eVB4quGdjNj2QduyiwrLL2I-udlAg,39614
29
+ spacr/train.py,sha256=rpOJBu3ho0Oec37I1mO4_3eQ480y_4bgFiKCOgiyN8s,31741
30
+ spacr/umap.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
+ spacr/utils.py,sha256=zX6zhS7UmCOA2JzBw4uDb-p0SPq5igaeYjzJ56d7hG8,171627
32
+ spacr/version.py,sha256=axH5tnGwtgSnJHb5IDhiu4Zjk5GhLyAEDRe-rnaoFOA,409
33
+ spacr/models/cp/toxo_pv_lumen.CP_model,sha256=2y_CindYhmTvVwBH39SNILF3rI3x9SsRn6qrMxHy3l0,26562451
34
+ spacr-0.0.6.dist-info/LICENSE,sha256=SR-2MeGc6SCM1UORJYyarSWY_A-JaOMFDj7ReSs9tRM,1083
35
+ spacr-0.0.6.dist-info/METADATA,sha256=Fty3r7xtek-0XdpoujHVKPqIWQSWkVL7AYNiJBGI3wA,4761
36
+ spacr-0.0.6.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
37
+ spacr-0.0.6.dist-info/entry_points.txt,sha256=xncHsqD9MI5wj0_p4mgZlrB8dHm_g_qF0Ggo1c78LqY,315
38
+ spacr-0.0.6.dist-info/top_level.txt,sha256=GJPU8FgwRXGzKeut6JopsSRY2R8T3i9lDgya42tLInY,6
39
+ spacr-0.0.6.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -0,0 +1,9 @@
1
+ [console_scripts]
2
+ annotate = spacr.annotate_app:gui_annotation
3
+ classify = spacr.gui_classify_app:gui_classify
4
+ gui = spacr.gui:gui_app
5
+ gui2 = spacr.gui_2:gui_app
6
+ make_masks = spacr.mask_app:gui_make_masks
7
+ mask = spacr.gui_mask_app:gui_mask
8
+ measure = spacr.gui_measure_app:gui_measure
9
+ sim = spacr.gui_sim_app:gui_sim
@@ -1,64 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: spacr
3
- Version: 0.0.1
4
- Summary: A brief description of your package
5
- Home-page: https://github.com/EinarOlafsson/spacr
6
- Author: Einar Birnir Olafsson
7
- Author-email: olafsson@med.umich.com
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Operating System :: OS Independent
11
- License-File: LICENSE
12
- Requires-Dist: torch
13
- Requires-Dist: torchvision
14
- Requires-Dist: numpy
15
- Requires-Dist: pandas
16
- Requires-Dist: statsmodels
17
- Requires-Dist: scikit-image
18
- Requires-Dist: scikit-learn
19
- Requires-Dist: seaborn
20
- Requires-Dist: matplotlib
21
- Requires-Dist: pillow
22
- Requires-Dist: imageio
23
- Requires-Dist: scipy
24
- Requires-Dist: ipywidgets
25
- Requires-Dist: mahotas
26
- Requires-Dist: btrack
27
- Requires-Dist: trackpy
28
- Requires-Dist: cellpose
29
- Requires-Dist: IPython
30
- Requires-Dist: opencv-python-headless
31
- Requires-Dist: umap
32
- Requires-Dist: ttkthemes
33
- Provides-Extra: dev
34
- Requires-Dist: pytest >=3.9 ; extra == 'dev'
35
- Provides-Extra: full
36
- Requires-Dist: opencv-python ; extra == 'full'
37
- Provides-Extra: headless
38
- Requires-Dist: opencv-python-headless ; extra == 'headless'
39
-
40
- # SPACR
41
-
42
- Morphological processing toolset
43
-
44
- ## Installation
45
-
46
- Tkinter is need to run
47
-
48
- ### Ubuntu
49
-
50
- `apt-get install pyton3-tk`
51
-
52
-
53
- ## Running
54
-
55
- ### Measuring
56
-
57
- `measure_gui`
58
-
59
- pass `path/to/tif/images`
60
-
61
- ```
62
- code
63
- block
64
- ```
@@ -1,26 +0,0 @@
1
- spacr/__init__.py,sha256=l31dOqsItFjCkgSLu8SuehjjnQ1KQhBkYSyxtXVYJyA,769
2
- spacr/__main__.py,sha256=_qRkhbFrH_cXr7AZs6KHL8Hh4VApqNdpNCtiKn2ePTo,285
3
- spacr/annotate_app.py,sha256=IPgZfS4TrSqbJr81P1FWUNOgCPPcS6EdQjUsXRwY-4E,19932
4
- spacr/cli.py,sha256=wIFnKxz5rXRR6o1XMeTZ7nE9UO_-veRbDbr951Vqp5o,10629
5
- spacr/core.py,sha256=r-i3EwmFXnLDidxmkWTs5-RwGZ-wy4IcnKJF5ntYf-M,109296
6
- spacr/gui_mask_app.py,sha256=vNSfYQm0bhYIJ4LpdLMKscBVaSZtPbJ2txhNsiuXL3Y,9737
7
- spacr/gui_measure_app.py,sha256=sR8bi9aQwYvZC1u-4J8E4SPUG9nP_3RMJ5dWf41DYp8,8502
8
- spacr/gui_utils.py,sha256=4Jsy4uNSZKaFRAxRw4ohaHYFvx6QXn_3nXyD-JBGs_w,21218
9
- spacr/io.py,sha256=LfOqy5ypqjoaRtTyUyxbepBKQnp185C5Cy8A2qb9Cv0,95569
10
- spacr/logger.py,sha256=7Zqr3TuuOQLWT32gYr2q1qvv7x0a2JhLANmZcnBXAW8,670
11
- spacr/mask_app.py,sha256=B6-zYXVFg-cc58gLcz-Ry6LClO2jxLitL6B2ACb0HTw,39278
12
- spacr/measure.py,sha256=WFaPOysbCVM5f48NbBjBJj5JR-hZOWi4iFpai350Cqs,51366
13
- spacr/old_code.py,sha256=dbgDULLqhDQhB7ASWJZk3W9pm2MSA-8t-IR-mn70-mw,3280
14
- spacr/plot.py,sha256=KNLwQP-toD8uyivLZsJ-70ie9QXO3omlkNyyhQ09RmY,54500
15
- spacr/sim.py,sha256=jqIp-tmqH5UT-1oNQ-6_QqnTipUEsd638NRhfrgcILk,51390
16
- spacr/timelapse.py,sha256=_j6cSVaxOhM7mTfJuNNRKogJaIGz_fM92MIegE6Ykh0,25355
17
- spacr/train.py,sha256=fUvh6BMwwmodSGZGUzL420leXOQW2k4WOKB_wwlwSM4,25361
18
- spacr/umap.py,sha256=4QSrQ16Og-Ijq-SwguMQT2f20UWz1LE5HQeSLmzSl8c,29370
19
- spacr/utils.py,sha256=g_I2IdxCtaNDownnnYnQ0114XaL2zSjBKeeQOHpY3v8,116770
20
- spacr/version.py,sha256=axH5tnGwtgSnJHb5IDhiu4Zjk5GhLyAEDRe-rnaoFOA,409
21
- spacr-0.0.1.dist-info/LICENSE,sha256=SR-2MeGc6SCM1UORJYyarSWY_A-JaOMFDj7ReSs9tRM,1083
22
- spacr-0.0.1.dist-info/METADATA,sha256=2eEdG7LBuM11Qo5-AQ1Oq7uCdk00EBAQQAmR0NZQIDs,1326
23
- spacr-0.0.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
24
- spacr-0.0.1.dist-info/entry_points.txt,sha256=WgVTXZSjmP1ZnQ1h4mdMldCJr_a8pWW8iB1SJ1J2PJ0,203
25
- spacr-0.0.1.dist-info/top_level.txt,sha256=GJPU8FgwRXGzKeut6JopsSRY2R8T3i9lDgya42tLInY,6
26
- spacr-0.0.1.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- [console_scripts]
2
- gui_annotation = spacr.annotate_app:gui_annotation
3
- gui_make_masks = spacr.mask_app:gui_make_masks
4
- gui_mask = spacr.gui_mask_app:gui_mask
5
- gui_measure = spacr.gui_measure_app:gui_measure
File without changes