2026/4/7 20:21:21
网站建设
项目流程
建筑专业网站有哪些,新兴县做网站的,最新新闻热点头条,百家号关键词排名优化Slabify是一款基于Python的命令行工具#xff0c;专用于在细胞冷冻电子断层扫描#xff08;cryo-ET#xff09;三维数据中自动分割薄层切片#xff08;lamella slab#xff09;。该程序通过分析断层图像内随机采样点的局部方差来定位目标密度区域#xff0c;…Slabify是一款基于Python的命令行工具专用于在细胞冷冻电子断层扫描cryo-ET三维数据中自动分割薄层切片lamella slab。该程序通过分析断层图像内随机采样点的局部方差来定位目标密度区域提供三种操作模式默认模式通过迭代拟合两个平面确定薄层边界程序将反复优化断层顶部与底部的平面拟合最终确定薄层的上下边界。简化模式启用 --simple 参数单平面拟合后扩展厚度在断层中心拟合单一平面随后沿Z轴方向扩展指定厚度通过 --thickness 参数设置。该模式在复杂场景中通常表现更优。手动模式交互式平面拟合当自动处理失效时用户可在IMOD软件中精准标记12个定位点Slabify将根据这些点拟合定义薄层上下边界的双平面详见操作指南。前两种模式采用基于RANSAC算法的稳健拟合技术能有效抵御离群值干扰确保边界定位的准确性。1. Installation在指定目录下创建虚拟环境conda create --prefix /path/to/your/env/slabify python3.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/simple2.UsageUsing Slabify is straightforward:slabify --input tomogram.mrc --output tomogram_slab_mask.mrcYou may want to turn a few knobs to fine tune your results of course. Typeslabify --helpto see all options.3. FAQThe 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.