news 2026/4/27 6:07:59

Slabify-et 安装使用(https://github.com/CellArchLab/slabify-et)

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
Slabify-et 安装使用(https://github.com/CellArchLab/slabify-et)

Slabify是一款基于Python的命令行工具,专用于在细胞冷冻电子断层扫描(cryo-ET)三维数据中自动分割薄层切片(lamella slab)。该程序通过分析断层图像内随机采样点的局部方差来定位"目标密度"区域,提供三种操作模式:

  1. 默认模式:通过迭代拟合两个平面确定薄层边界
    程序将反复优化断层顶部与底部的平面拟合,最终确定薄层的上下边界。

  2. 简化模式(启用 --simple 参数):单平面拟合后扩展厚度
    在断层中心拟合单一平面,随后沿Z轴方向扩展指定厚度(通过 --thickness 参数设置)。该模式在"复杂场景"中通常表现更优。

  3. 手动模式:交互式平面拟合
    当自动处理失效时,用户可在IMOD软件中精准标记12个定位点,Slabify将根据这些点拟合定义薄层上下边界的双平面(详见操作指南)。

前两种模式采用基于RANSAC算法的稳健拟合技术,能有效抵御离群值干扰,确保边界定位的准确性。

1. Installation

在指定目录下创建虚拟环境:

conda create --prefix /path/to/your/env/slabify python=3.12

如果创建很慢,使用镜像源,修改 ~/.condarc:

show_channel_urls: true channels: - defaults - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2 - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r

成功后激活环境

conda activate slabify

或者

conda activate /path/to/your/env/slabify

安装Slabify 包

git clone https://github.com/CellArchLab/slabify-et.git cd slabify-et pip install . -i https://pypi.tuna.tsinghua.edu.cn/simple

2.Usage

Using Slabify is straightforward:

slabify --input tomogram.mrc --output tomogram_slab_mask.mrc

You may want to turn a few knobs to fine tune your results of course. Type

slabify --help

to see all options.

3. FAQ

The estimated slab is too thin, how can I improve it?

It is known that Slabify can be quite conservative in its estimation of the lamella boundaries. There are a few tips you can try to get thicker slab masks:

  • The easiest way is to use the--offsetoption to arbitrarily grow your slab mask in the Z direction. Note that a negative value can be provided to make the slabthinner!
  • You can increase the number of--iterations. 3 to 5 iterations are usually good.
  • You can slightly decrease the--percentileof highest variance points in order to capture more information, say from 95 to 94.
  • Tweaking the--n-samplesand--boxsizevalues can be beneficial in some cases (needs more testing).
  • Finally, the--simplemode with an arbitrary slab--thicknessis generally a safe option.
版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/4/23 17:47:30

c语言之utf8转unicdoe

static int utf8_to_unicode(unsigned char *in, unsigned short *out, int *outsize) {unsigned

作者头像 李华
网站建设 2026/4/23 14:15:14

提高信噪比的操作

信噪比定义 信噪比SNR是衡量信号质量的一个重要指标,是指有用信号功率与噪声功率的比值。信噪比越高,说明信号质量越好,波形在示波器上显示的效果会更加清晰,测量结果更能真实反映被测信号的特性;信噪比越低&#xff0…

作者头像 李华
网站建设 2026/4/18 0:04:30

基于SpringBoot农产品商城系统(毕设源码+文档)

课题说明本课题聚焦农产品产销对接的便捷化与规范化需求,针对当前农产品流通渠道狭窄、品牌曝光不足、供需信息不对称、交易流程不规范等痛点,设计开发基于SpringBoot框架的农产品商城系统。系统以SpringBoot为核心后端框架,结合前端主流开发…

作者头像 李华
网站建设 2026/4/25 12:31:30

基于分布式驱动电动汽车的车辆状态估计探索

基于分布式驱动电动汽车的车辆状态估计,采用的是容积卡尔曼(ckf)观测器,可估计包括纵向速度,质心侧偏角,横摆角速度,侧倾角四个状态。 模型中第一个模块是四轮驱动电机;第二个模块是…

作者头像 李华
网站建设 2026/4/25 12:29:02

AI:我裂开了!现在的大模型评估究竟有多变态?

本文视频:https://bilibili.com/video/BV1HnB7BjEAN/ 年底的 AI 圈子很热闹,可以说是神仙打架:Gemini 3.0、Claude Opus 4.5、GPT 5.2 … 这三大全球最顶级的模型,几乎在同一时间甩出了自己的“王炸”。 今天这家说自己代码能力…

作者头像 李华