自分の環境に合わせて変える部分↓
インストールはここを参照https://github.com/jgreener64/Bio3DView.jl
PyCallについてはここの最初の方を参照 https://github.com/JuliaPy/PyCall.jl#installation
ENV["PYTHON"] = "/Users/noriakioshita/.pyenv/shims/python"
Pkg.build("PyCall")
INFO: Building Conda INFO: Building PyCall INFO: PyCall is using /Users/noriakioshita/.pyenv/shims/python (Python 3.5.2) at /Users/noriakioshita/.pyenv/versions/anaconda3-4.0.0/bin/python, libpython = /Users/noriakioshita/.pyenv/versions/anaconda3-4.0.0/lib/libpython3.5m INFO: /Users/noriakioshita/.julia/v0.6/PyCall/deps/deps.jl has not changed INFO: /Users/noriakioshita/.julia/v0.6/PyCall/deps/PYTHON has not changed
using Bio3DView
INFO: Recompiling stale cache file /Users/noriakioshita/.julia/lib/v0.6/PyCall.ji for module PyCall.
viewpdb("2LZM")
ここでダウンロードできるファイルを表示してみる.
https://www.rcsb.org/structure/6ERX
viewfile("6erx.pdb","pdb")
viewfile("5ngw.pdb","pdb")
白い玉(専門用語は不明)が表示されないなどあるけれど,PDBのファイルを表示できるのは大きい.
matplotlibなどへの応用もできると尚いい.