本家様http://sphire.mpg.de/wiki/doku.php?id=janni

まずはpyenv環境を構築するcrYOLO#w789c07e
次に、

[root@centos7 ~]# export PYENV_ROOT=/Appl/pyenv
[root@centos7 ~]# export PATH=$PYENV_ROOT/bin:$PATH
[root@centos7 ~]# eval "$(pyenv init -)"
 
[root@centos7 ~]# export PATH=$PYENV_ROOT/versions/anaconda3-5.3.1/bin/:$PATH

とおまじないをして、
JANNI向けの環境を作る. *(2022.04) janni-0.2.2のGPU版は作れるがA2000で処理したら画像が??なのでCPU版を提示しています

[root@centos7 ~]# conda create -n janni-cpu -c conda-forge -c anaconda python=3.6 cudnn=7.1.2 libtiff wxPython=4.0.4 numpy=1.14.5 matplotlib=3 imageio=2 cython

完成したら、作ったJANNI環境へ移ってアプリを追加します

[root@centos7 ~]# source activate janni-cpu
(janni-cpu) [root@centos7 ~]#
(janni-cpu) [root@centos7 ~]# pip install janni[cpu]==0.2.2 numpy==1.14.5

12枚のmrcファイルを処理したら 16minくらい

■GPU版なら janni-0.3.0b5 では上手く行った

conda create -n janni-gpu  -c conda-forge python=3.6 cudnn=7 libtiff wxPython=4.1 numpy=1.16 matplotlib=3 imageio=2 cython
source activate janni-gpu
pip install janni[gpu]==0.3.0b5

12枚のmrcファイルを処理したら 5min くらい
同じように janni-0.3.0b5のcpu版を作ってみたが、処理速度は同じくらいの5minほど. なんかGPUが活用されてないっぽい...

EnvironmentModules

EnvironmentModulesで実行環境を整備するならmodiilefileを下記のようにする
*普通は「/etc/modulefiles/janni」かな

[root@c ~]# vi /home/Common/modules/janni
#%Module
set          root /Appl/pyenv/versions/anaconda3-5.3.1/envs/janni
prepend-path PATH $root/bin
[root@c ~]#

テスト実行

コマンドラインで実際にテスト.
「/apps/janni」にjanniのモデルファイルを設置して、
使用する画像はGCTF_Gautomatch_Cu10.1に付属のmrc画像としています

[illya@centos7 ~]$ mkdir janni && cd janni
[illya@centos7 janni]$ module load janni-cpu
 
[illya@centos7 janni]$ mkdir input
[illya@centos7 janni]$ cd input/
 
[illya@centos7 input]$ ln -s /apps/GCTF_Gautomatch_Cu10.1/ribosome/test[78].mrc .
[illya@centos7 input]$ cd ..
 
[illya@centos7 janni]$ janni_denoise.py denoise ./input ./out /apps/janni/gmodel_janni_20190703.h5 -g 0
最新の60件
2025-02-17 2025-02-15 2025-02-14 2025-02-12 2025-02-03 2025-02-02 2025-02-01 2025-01-27 2025-01-26 2025-01-25 2025-01-24 2025-01-23 2025-01-20 2025-01-13 2025-01-12 2025-01-08 2024-12-30 2024-12-29 2024-12-22 2024-12-20 2024-12-17 2024-12-15 2024-12-14 2024-12-12 2024-12-11 2024-12-10 2024-12-09 2024-12-08 2024-11-28 2024-11-22 2024-11-15 2024-11-14 2024-11-12 2024-11-06 2024-11-05 2024-11-04 2024-11-02 2024-11-01 2024-10-28 2024-10-27 2024-10-23 2024-10-18 2024-10-17 2024-10-15 2024-10-14

edit


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2022-04-10 (日) 15:42:34