spacr 0.0.1__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.
- spacr-0.0.1/LICENSE +21 -0
- spacr-0.0.1/PKG-INFO +64 -0
- spacr-0.0.1/README.md +25 -0
- spacr-0.0.1/setup.cfg +4 -0
- spacr-0.0.1/setup.py +56 -0
- spacr-0.0.1/spacr/__init__.py +37 -0
- spacr-0.0.1/spacr/__main__.py +15 -0
- spacr-0.0.1/spacr/annotate_app.py +495 -0
- spacr-0.0.1/spacr/cli.py +203 -0
- spacr-0.0.1/spacr/core.py +2250 -0
- spacr-0.0.1/spacr/gui_mask_app.py +247 -0
- spacr-0.0.1/spacr/gui_measure_app.py +214 -0
- spacr-0.0.1/spacr/gui_utils.py +488 -0
- spacr-0.0.1/spacr/io.py +2271 -0
- spacr-0.0.1/spacr/logger.py +20 -0
- spacr-0.0.1/spacr/mask_app.py +818 -0
- spacr-0.0.1/spacr/measure.py +1014 -0
- spacr-0.0.1/spacr/old_code.py +104 -0
- spacr-0.0.1/spacr/plot.py +1273 -0
- spacr-0.0.1/spacr/sim.py +1187 -0
- spacr-0.0.1/spacr/timelapse.py +576 -0
- spacr-0.0.1/spacr/train.py +494 -0
- spacr-0.0.1/spacr/umap.py +689 -0
- spacr-0.0.1/spacr/utils.py +2726 -0
- spacr-0.0.1/spacr/version.py +19 -0
- spacr-0.0.1/spacr.egg-info/PKG-INFO +64 -0
- spacr-0.0.1/spacr.egg-info/SOURCES.txt +35 -0
- spacr-0.0.1/spacr.egg-info/dependency_links.txt +1 -0
- spacr-0.0.1/spacr.egg-info/entry_points.txt +5 -0
- spacr-0.0.1/spacr.egg-info/requires.txt +30 -0
- spacr-0.0.1/spacr.egg-info/top_level.txt +1 -0
- spacr-0.0.1/tests/test_core.py +0 -0
- spacr-0.0.1/tests/test_io.py +0 -0
- spacr-0.0.1/tests/test_measure.py +0 -0
- spacr-0.0.1/tests/test_plot.py +0 -0
- spacr-0.0.1/tests/test_timelapse.py +0 -0
- spacr-0.0.1/tests/test_util.py +0 -0
spacr-0.0.1/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) <year> Adam Veldhousen
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
spacr-0.0.1/PKG-INFO
ADDED
@@ -0,0 +1,64 @@
|
|
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: headless
|
36
|
+
Requires-Dist: opencv-python-headless; extra == "headless"
|
37
|
+
Provides-Extra: full
|
38
|
+
Requires-Dist: opencv-python; extra == "full"
|
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
|
+
```
|
spacr-0.0.1/README.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# SPACR
|
2
|
+
|
3
|
+
Morphological processing toolset
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Tkinter is need to run
|
8
|
+
|
9
|
+
### Ubuntu
|
10
|
+
|
11
|
+
`apt-get install pyton3-tk`
|
12
|
+
|
13
|
+
|
14
|
+
## Running
|
15
|
+
|
16
|
+
### Measuring
|
17
|
+
|
18
|
+
`measure_gui`
|
19
|
+
|
20
|
+
pass `path/to/tif/images`
|
21
|
+
|
22
|
+
```
|
23
|
+
code
|
24
|
+
block
|
25
|
+
```
|
spacr-0.0.1/setup.cfg
ADDED
spacr-0.0.1/setup.py
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
from setuptools import setup, find_packages
|
2
|
+
|
3
|
+
dependencies = [
|
4
|
+
'torch',
|
5
|
+
'torchvision',
|
6
|
+
'numpy',
|
7
|
+
'pandas',
|
8
|
+
'statsmodels',
|
9
|
+
'scikit-image',
|
10
|
+
'scikit-learn',
|
11
|
+
'seaborn',
|
12
|
+
'matplotlib',
|
13
|
+
'pillow',
|
14
|
+
'imageio',
|
15
|
+
'scipy',
|
16
|
+
'ipywidgets',
|
17
|
+
'mahotas',
|
18
|
+
'btrack',
|
19
|
+
'trackpy',
|
20
|
+
'cellpose',
|
21
|
+
'IPython',
|
22
|
+
'opencv-python-headless',
|
23
|
+
'umap',
|
24
|
+
'ttkthemes'
|
25
|
+
]
|
26
|
+
|
27
|
+
setup(
|
28
|
+
name="spacr",
|
29
|
+
version="0.0.1",
|
30
|
+
author="Einar Birnir Olafsson",
|
31
|
+
author_email="olafsson@med.umich.com",
|
32
|
+
description="A brief description of your package",
|
33
|
+
long_description=open('README.md').read(),
|
34
|
+
url="https://github.com/EinarOlafsson/spacr",
|
35
|
+
packages=find_packages(exclude=["tests.*", "tests"]),
|
36
|
+
install_requires=dependencies,
|
37
|
+
entry_points={
|
38
|
+
'console_scripts': [
|
39
|
+
'gui_mask=spacr.gui_mask_app:gui_mask',
|
40
|
+
'gui_measure=spacr.gui_measure_app:gui_measure',
|
41
|
+
'gui_make_masks=spacr.mask_app:gui_make_masks',
|
42
|
+
'gui_annotation=spacr.annotate_app:gui_annotation',
|
43
|
+
],
|
44
|
+
},
|
45
|
+
extras_require={
|
46
|
+
'dev': ['pytest>=3.9'],
|
47
|
+
'headless': ['opencv-python-headless'],
|
48
|
+
'full': ['opencv-python'],
|
49
|
+
},
|
50
|
+
classifiers=[
|
51
|
+
"Programming Language :: Python :: 3",
|
52
|
+
"License :: OSI Approved :: MIT License",
|
53
|
+
"Operating System :: OS Independent",
|
54
|
+
],
|
55
|
+
)
|
56
|
+
|
@@ -0,0 +1,37 @@
|
|
1
|
+
from spacr.version import version, version_str
|
2
|
+
import logging
|
3
|
+
|
4
|
+
from . import core
|
5
|
+
from . import io
|
6
|
+
from . import utils
|
7
|
+
from . import plot
|
8
|
+
from . import measure
|
9
|
+
from . import sim
|
10
|
+
from . import timelapse
|
11
|
+
from . import train
|
12
|
+
from . import mask_app
|
13
|
+
from . import annotate_app
|
14
|
+
from . import gui_utils
|
15
|
+
from . import gui_mask_app
|
16
|
+
from . import gui_measure_app
|
17
|
+
from . import logger
|
18
|
+
|
19
|
+
__all__ = [
|
20
|
+
"core",
|
21
|
+
"io",
|
22
|
+
"utils",
|
23
|
+
"plot",
|
24
|
+
"measure",
|
25
|
+
"sim",
|
26
|
+
"timelapse",
|
27
|
+
"train",
|
28
|
+
"annotate_app",
|
29
|
+
"gui_utils",
|
30
|
+
"mask_app",
|
31
|
+
"gui_mask_app",
|
32
|
+
"gui_measure_app",
|
33
|
+
"logger"
|
34
|
+
]
|
35
|
+
|
36
|
+
logging.basicConfig(filename='spacr.log', level=logging.INFO,
|
37
|
+
format='%(asctime)s:%(levelname)s:%(message)s')
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"""
|
2
|
+
Copyright © 2024 Something
|
3
|
+
"""
|
4
|
+
|
5
|
+
import sys, os, glob, pathlib, time
|
6
|
+
import numpy as np
|
7
|
+
from natsort import natsorted
|
8
|
+
from tqdm import tqdm
|
9
|
+
#from spacr import utils, io, version, timelapse, plot, core, mask_app, annotate_app
|
10
|
+
import logging
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
if __name__ == "__main__":
|
15
|
+
main()
|