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

或本地

  1. git clone https://git.ist.ac.at/csommer/pyoformats.git
  2. cd pyoformats
  3. pip install -e .

依赖关系

  • numpy公司
  • 爪哇桥
  • Python生物层

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何在构造函数外部添加鼠标侦听器   java如何使用比较器对列表进行排序以正确排序空值?   javajavax。由于javax,邮件“535.7.3身份验证失败”。邮件升级(v1.3.1至v1.5.2)   java将arraylist流到固定的二维数组中并打印?   RecyclerView适配器上的java上下文   java如何为此Twitter API为KafkaProducer建立连接   java Spring安全性重写WebSecurity配置适配器的配置(AuthenticationManagerBuilder)是否会影响全局应用程序?   线程“awteventque0”NullPointerException中的java异常   if条件中的null值和null指针异常java   java树集<Object>允许相同类型的多个对象   java定义类;我认不出   字符串java replaceAll()   JAVAutil。scanner(Java)读取文件时如何跳过空格?   java在swing中关闭flash屏幕   java在Wildfly 16中的应用程序中加载pk12文件   有没有工具可以自动生成屏幕抓取的Java代码   创建意图时,java方法getParcelableExtra()返回null   将数据从java传递到jsp   java Android Studio |永久保存布局