summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-29 11:35:31 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-29 11:35:31 +0000
commit13ebefd08d07f2fb3cec582fe28e0c3013d98a93 (patch)
tree8d57d217baf9e3862de1a7d7cec4a26ac21ce670
parent6bc6aee2fb5488e36680ec15259500d094fd8787 (diff)
automatic import of python-napari-stpt
-rw-r--r--.gitignore1
-rw-r--r--python-napari-stpt.spec273
-rw-r--r--sources1
3 files changed, 275 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..3748e7c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/napari-stpt-0.1.0.2.tar.gz
diff --git a/python-napari-stpt.spec b/python-napari-stpt.spec
new file mode 100644
index 0000000..c4f8471
--- /dev/null
+++ b/python-napari-stpt.spec
@@ -0,0 +1,273 @@
+%global _empty_manifest_terminate_build 0
+Name: python-napari-stpt
+Version: 0.1.0.2
+Release: 1
+Summary: napari viewer which can read stpt images as zarr files
+License: GNU
+URL: https://github.com/TristanWhitmarsh/napari-stpt
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/9a/ae/4d93576e4e054f3fe50a1fe777cdee757088be3f54273d260fe92bdad2fe/napari-stpt-0.1.0.2.tar.gz
+BuildArch: noarch
+
+Requires: python3-opencv-python
+Requires: python3-napari
+Requires: python3-numpy
+Requires: python3-xarray
+Requires: python3-zarr
+Requires: python3-PySide2
+Requires: python3-SimpleITK
+Requires: python3-napari-animation
+Requires: python3-tifffile
+
+%description
+# napari-stpt
+A napari viewer which reads stpt images as zarr files.
+
+## Installation Windows
+
+Start -> Anaconda3 (64-bit) -> Anaconda Prompt (Anaconda3)
+
+Type:
+
+ >conda create -n py37 python=3.7
+
+ >conda activate py37
+
+ >pip install napari-stpt --upgrade
+
+## Installation Linux
+
+Applications -> Terminal Emulator
+
+Type:
+
+ >pip install napari-stpt --upgrade
+
+
+## How to run
+
+The napari viewer can be run from command line by typing:
+
+ >napari-stpt
+
+
+## How to use
+
+1. If working within the IMAXT Windows VMware or Linux remote desktop, the Data folder containing the STPT images will have been automatically selected (windows server: N:/stpt/; linux: /data/meds1_c/storage/processed/stpt). If not, please select the location of the folders with STPT Zarr files using the "Set folder" button.
+2. The dropdown box should now have all the available STPT images.
+3. Select the image file from the dropdown box.
+
+#### 2D rendering (slice view)
+4. Select the slice you wish to view using the scroll bar.
+5. Press the "Load slice" button to load the image.
+6. When zooming using the mouse wheel the resolution will update dynamically.
+
+#### 3D rendering
+4. The "Output pixel size" is the resolution to which the images are reformatted (after applying the translations based on the bead locations).
+5. The "Maximum number of optical slices" can be set in case the optical slices go beyond the slice thickness of 15um. For example, if we have 9 optical slices of 2um we should use only 7 slices.
+6. Select which channels to load.
+7. Press "Load image 3D".
+8. To crop the volume draw a shape using the add rectangles button of napari. To do this select the "New shapes layer" button and then "Add rectangles" button. Draw a box across the image according to the region you wish to crop.
+9. Pressing "Crop to shape" will just crop the colume to this region.
+10. Pressing "Reload in shape" will reload the slices. In this case you can set a different output pixel size. To get the full resolution use a value of 0.5, although a value of 1 or 2 will in most cases suffice. Be aware that due to the limited memory the region will have to be rather small if the resolution increases.
+11. Press "Save volume" to save the multi-channel volume to a tiff file.
+12. Press the "Toggle number of display dimensions" button at the botton left (or press Ctrl-Y) to see the volume in 3D.
+
+
+<p float="left">
+<img src="https://raw.githubusercontent.com/TristanWhitmarsh/napari-stpt/main/napari-stpt1.jpg" width="600"/>
+<img src="https://raw.githubusercontent.com/TristanWhitmarsh/napari-stpt/main/napari-stpt2.jpg" width="600"/>
+</p>
+
+
+### Bead removal
+Removing the beads requires a "Tissue threshold value" to be set which separates the tissue from background. Move the mouse over the image to get an idea of the values, which are shown in the status bar. There are two ways to remove the beads in a volume:
+1. Press button "Show only large regions" to remove all but the largest regions. The number of regions to retain can be selected for this.
+1. Press button "Remove small regions" to remove all the regions smaller than the size as defined by the "Minimum size".
+
+
+%package -n python3-napari-stpt
+Summary: napari viewer which can read stpt images as zarr files
+Provides: python-napari-stpt
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-napari-stpt
+# napari-stpt
+A napari viewer which reads stpt images as zarr files.
+
+## Installation Windows
+
+Start -> Anaconda3 (64-bit) -> Anaconda Prompt (Anaconda3)
+
+Type:
+
+ >conda create -n py37 python=3.7
+
+ >conda activate py37
+
+ >pip install napari-stpt --upgrade
+
+## Installation Linux
+
+Applications -> Terminal Emulator
+
+Type:
+
+ >pip install napari-stpt --upgrade
+
+
+## How to run
+
+The napari viewer can be run from command line by typing:
+
+ >napari-stpt
+
+
+## How to use
+
+1. If working within the IMAXT Windows VMware or Linux remote desktop, the Data folder containing the STPT images will have been automatically selected (windows server: N:/stpt/; linux: /data/meds1_c/storage/processed/stpt). If not, please select the location of the folders with STPT Zarr files using the "Set folder" button.
+2. The dropdown box should now have all the available STPT images.
+3. Select the image file from the dropdown box.
+
+#### 2D rendering (slice view)
+4. Select the slice you wish to view using the scroll bar.
+5. Press the "Load slice" button to load the image.
+6. When zooming using the mouse wheel the resolution will update dynamically.
+
+#### 3D rendering
+4. The "Output pixel size" is the resolution to which the images are reformatted (after applying the translations based on the bead locations).
+5. The "Maximum number of optical slices" can be set in case the optical slices go beyond the slice thickness of 15um. For example, if we have 9 optical slices of 2um we should use only 7 slices.
+6. Select which channels to load.
+7. Press "Load image 3D".
+8. To crop the volume draw a shape using the add rectangles button of napari. To do this select the "New shapes layer" button and then "Add rectangles" button. Draw a box across the image according to the region you wish to crop.
+9. Pressing "Crop to shape" will just crop the colume to this region.
+10. Pressing "Reload in shape" will reload the slices. In this case you can set a different output pixel size. To get the full resolution use a value of 0.5, although a value of 1 or 2 will in most cases suffice. Be aware that due to the limited memory the region will have to be rather small if the resolution increases.
+11. Press "Save volume" to save the multi-channel volume to a tiff file.
+12. Press the "Toggle number of display dimensions" button at the botton left (or press Ctrl-Y) to see the volume in 3D.
+
+
+<p float="left">
+<img src="https://raw.githubusercontent.com/TristanWhitmarsh/napari-stpt/main/napari-stpt1.jpg" width="600"/>
+<img src="https://raw.githubusercontent.com/TristanWhitmarsh/napari-stpt/main/napari-stpt2.jpg" width="600"/>
+</p>
+
+
+### Bead removal
+Removing the beads requires a "Tissue threshold value" to be set which separates the tissue from background. Move the mouse over the image to get an idea of the values, which are shown in the status bar. There are two ways to remove the beads in a volume:
+1. Press button "Show only large regions" to remove all but the largest regions. The number of regions to retain can be selected for this.
+1. Press button "Remove small regions" to remove all the regions smaller than the size as defined by the "Minimum size".
+
+
+%package help
+Summary: Development documents and examples for napari-stpt
+Provides: python3-napari-stpt-doc
+%description help
+# napari-stpt
+A napari viewer which reads stpt images as zarr files.
+
+## Installation Windows
+
+Start -> Anaconda3 (64-bit) -> Anaconda Prompt (Anaconda3)
+
+Type:
+
+ >conda create -n py37 python=3.7
+
+ >conda activate py37
+
+ >pip install napari-stpt --upgrade
+
+## Installation Linux
+
+Applications -> Terminal Emulator
+
+Type:
+
+ >pip install napari-stpt --upgrade
+
+
+## How to run
+
+The napari viewer can be run from command line by typing:
+
+ >napari-stpt
+
+
+## How to use
+
+1. If working within the IMAXT Windows VMware or Linux remote desktop, the Data folder containing the STPT images will have been automatically selected (windows server: N:/stpt/; linux: /data/meds1_c/storage/processed/stpt). If not, please select the location of the folders with STPT Zarr files using the "Set folder" button.
+2. The dropdown box should now have all the available STPT images.
+3. Select the image file from the dropdown box.
+
+#### 2D rendering (slice view)
+4. Select the slice you wish to view using the scroll bar.
+5. Press the "Load slice" button to load the image.
+6. When zooming using the mouse wheel the resolution will update dynamically.
+
+#### 3D rendering
+4. The "Output pixel size" is the resolution to which the images are reformatted (after applying the translations based on the bead locations).
+5. The "Maximum number of optical slices" can be set in case the optical slices go beyond the slice thickness of 15um. For example, if we have 9 optical slices of 2um we should use only 7 slices.
+6. Select which channels to load.
+7. Press "Load image 3D".
+8. To crop the volume draw a shape using the add rectangles button of napari. To do this select the "New shapes layer" button and then "Add rectangles" button. Draw a box across the image according to the region you wish to crop.
+9. Pressing "Crop to shape" will just crop the colume to this region.
+10. Pressing "Reload in shape" will reload the slices. In this case you can set a different output pixel size. To get the full resolution use a value of 0.5, although a value of 1 or 2 will in most cases suffice. Be aware that due to the limited memory the region will have to be rather small if the resolution increases.
+11. Press "Save volume" to save the multi-channel volume to a tiff file.
+12. Press the "Toggle number of display dimensions" button at the botton left (or press Ctrl-Y) to see the volume in 3D.
+
+
+<p float="left">
+<img src="https://raw.githubusercontent.com/TristanWhitmarsh/napari-stpt/main/napari-stpt1.jpg" width="600"/>
+<img src="https://raw.githubusercontent.com/TristanWhitmarsh/napari-stpt/main/napari-stpt2.jpg" width="600"/>
+</p>
+
+
+### Bead removal
+Removing the beads requires a "Tissue threshold value" to be set which separates the tissue from background. Move the mouse over the image to get an idea of the values, which are shown in the status bar. There are two ways to remove the beads in a volume:
+1. Press button "Show only large regions" to remove all but the largest regions. The number of regions to retain can be selected for this.
+1. Press button "Remove small regions" to remove all the regions smaller than the size as defined by the "Minimum size".
+
+
+%prep
+%autosetup -n napari-stpt-0.1.0.2
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-napari-stpt -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.0.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..0854a2b
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+a8b35836d71c185a325030778fd132a9 napari-stpt-0.1.0.2.tar.gz