当前位置: 首页 > news >正文

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.
http://www.jsqmd.com/news/139884/

相关文章:

  • ARC103B(abc101D)
  • 链表的基本操作,用链表实现线性表
  • 12/25
  • 如何进行 Python 和 Lua 之间的复杂数据交换
  • 游戏手柄电池没电了?靠谱供应商看这里 - 工业品网
  • 物联网智能灯具推荐:五大独家精选深度推荐 - 品牌测评家
  • 解码STM32F4环境搭建、工程搭建与烧录
  • (新卷,200分)- 找单词(Java JS Python)
  • 抽象圣诞树3
  • 段页式管理方式学习总结
  • 游戏手柄电池批发厂家哪里找?聚电新能源 - 工业品网
  • 一天面了6个前端开发,水平真的令人堪忧啊 - 教程
  • 游戏手柄电池选购指南:性价比、性能与环保面面观 - 工业品网
  • 物联网智能灯具哪家品质好:最新官方排名品质测评 - 品牌测评家
  • Intel CPU搭配NVIDIA显卡!Serpent Lake曝光:直指AMD超级APU
  • 实验七
  • 基于深度学习的水面垃圾检测系统演示与介绍(YOLOv12/v11/v8/v5模型+Pyqt5界面+训练代码+数据集)
  • 游戏手柄电池选购指南:行业优势、品牌推荐与聚电新能源实力展现 - 工业设备
  • 游戏手柄电池选购指南:好用、靠谱又性价比高 - 工业设备
  • 体验访答:我的私有知识库新选择
  • 抽象圣诞树2
  • 刘诗诗元气高马尾造型美出圈!剪彩时细节动作尽显温柔底色
  • 支持RV32E的单周期NPC
  • 从化文旅宣传策划公司排名:用户增长300%黑马冲前列 - 品牌测评家
  • HTML数据看板快速开发:DeepSeek生成代码+浏览器直接渲染实操指南
  • Kappa 0.8代表什么?
  • 大数据技术核心解析与实操实战
  • html基本语法 - 详解
  • KS A/T ISO 8317-韩国儿童防护包装CRP测试
  • 【课程设计/毕业设计】基于SpringBoot和Vue.js的智慧社区管理系统基于Vue.js的在线智慧社区服务平台【附源码、数据库、万字文档】