PyoFormats:pythonbioformats的简单包装器
pyoformats的Python项目详细描述
缩影
python格式的简单包装器
示例
frompyoformatsimportread# start JVMread.JVM().start()# displays names and shapes of all available series in fileread.file_info("test.msr")# get series count of filen_series=read.series_count("test.msr")# returns 5d numpy array of image in seriesmy_image=read.image_5d("test.msr",series=1)# read only certain z-slices. (Note, also channels and frames can be selected)my_image=read.image_5d("test.msr",series=1,zslices=[2,3,5,8,13])# get physical pixel sizesxyz_sizes=read.pixel_sizes_xyz("test.msr",series=0)# get physical pixel unitsxyz_sizes=read.pixel_sizes_xyz_units("test.msr",series=0)# iterate over all series and extract name and pixel datafors,datainread.image_5d_iterator("test.msr"):print(s,data.shape)# at end of scriptread.JVM().shutdown()
安装
详细说明了如何安装依赖项(Windows/MacOS)
在安装pyoformats Python包之前,请查看installing dependencies的详细说明。在
来自PyPi
pip install pyoformats
直接来自gitlab的pyoformat
pip install git+https://git.ist.ac.at/csommer/pyoformats.git
或本地
git clone https://git.ist.ac.at/csommer/pyoformats.git
cd pyoformats
pip install -e .
依赖关系
- numpy公司
- 爪哇桥
- Python生物层
- 项目
标签: