本家様 https://github.com/tribell4310/reliosparc
「reliosparc - interfacing between cryoSPARC and Relion」とある.

Python3.5以降の対応なので CentOS7 の標準は 2.7.5 なので無理. 一方「python3」として提供されているのは「3.6.8」で行ける.
cudaの絡みとかもないのでOS提供の python3 を使う形で reliosparc をインストールしてみる.
pyenv/anacondaで環境を分けてもいいが、ツールのようなのでOS提供python3に入れる事とした

下準備

OS提供のpython3を入れる

[root@centos7 ~]# yum install epel-release
[root@centos7 ~]# yum install python3 python36-numpy dos2unix
 
[root@centos8 ~]# dnf --enablerepo=powertools install python3-numpy dos2unix python3-matplotlib

インストール

[root@centos7 ~]# cd /apps
[root@centos7 apps]# git clone https://github.com/tribell4310/reliosparc

ちょいと修正

[root@centos7 ~]# cd /apps/reliosparc
 
[root@centos7 reliosparc]# file cs_to_stars.py
cs_to_stars.py: Python script, ASCII text executable, with CRLF line terminators        (dosファイル形式なので)
 
[root@centos7 reliosparc]# dos2unix cs_to_stars.py
dos2unix: converting file cs_to_stars.py to Unix format ...
 
[root@centos7 reliosparc]# file cs_to_stars.py
cs_to_stars.py: Python script, ASCII text executable                                    (unix形式へ変換)
 
[root@centos7 reliosparc]# 
 
(行頭を修正)
[root@centos7 reliosparc]# head -n 3 cs_to_stars.py     (初めの3行を表示)
"""
 
Tristan Bell
[root@centos7 reliosparc]# sed -i '1s/^/#!\/usr\/bin\/python3\n/' cs_to_stars.py
[root@centos7 reliosparc]# head -n 3 cs_to_stars.py
#!/usr/bin/python3
"""
 
[root@centos7 reliosparc]# chmod +x cs_to_stars.py

と使用するpython3を指定しました.
「python3 /apps/reliosparc/cs_to_stars.py」で実行してもいいのでしょうけど.

EnvironmentModules

「/etc/modulefiles/reliosparc 」

#%Module1.0
set-alias cs_to_stars.py /apps/reliosparc/cs_to_stars.py

使い方

module load reliosparc
cs_to_stars.py

メモ

本家様には
「The cs_to_stars.py script can take a cryosparc *.cs file, extract the particle coordinates, and format them into star files for easy import into relion. Please note that this script only transfers particle coordinates. If you would rather extract a particle stack in cryosparc and process it further in relion, the csparc2star script in David Asarnow's PyEM repository works well.」
と書かれています。
その csparc2star は PyEM にあります.

最新の60件
2023-09-20 2023-09-19 2023-09-18 2023-09-17 2023-09-16 2023-09-14 2023-09-12 2023-09-11 2023-09-08 2023-09-05 2023-09-02 2023-08-30 2023-08-29 2023-08-28 2023-08-27 2023-08-22 2023-08-20 2023-08-18 2023-08-17 2023-08-14 2023-08-12 2023-08-09 2023-08-07 2023-08-06 2023-08-03 2023-07-31 2023-07-29 2023-07-27 2023-07-25 2023-07-24 2023-07-22 2023-07-17 2023-07-16 2023-07-09 2023-07-08

edit


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2022-03-18 (金) 20:07:24