顯示具有 GROMACS安裝 標籤的文章。 顯示所有文章
顯示具有 GROMACS安裝 標籤的文章。 顯示所有文章

2018年6月27日 星期三

安裝GROMACS-2018.1在Ubuntu 16.04

GROMACS 2018出了更新版2018.1,參考安裝GROMACS-2018在Ubuntu 16.04,這邊是安裝gmx2018.1到Ubuntu 16.04上,使用cuda-9.1來加速。以下是安裝紀錄

2018年5月31日 星期四

Static GROMACS-4.6.7 with ORCA

編譯static GROMACS-4.6.7 in double precision with ORCA
  • CMAKE version 3.10.2
  • GCC 6.4.0
首先下載原始碼與測試檔案
  • wget ftp://ftp.gromacs.org/pub/gromacs/gromacs-4.6.7.tar.gz
  • md5sum gromacs-4.6.7.tar.gz
    6d7f7113a39a9dbd91afec2237188d91  
  • wget http://gerrit.gromacs.org/download/regressiontests-4.6.7.tar.gz
  • md5sum regressiontests-4.6.7.tar.gz
    90c8ab2e538fa09aeb8210880913bbf3
接著用下面的方式編譯

2018年5月3日 星期四

GROMACS-2018.1配ORCA或Gaussian

要讓GROMACS-2018.1搭配ORCA與Gaussian來做QM/MM。關於環境變數、原始碼下載等等細節請參考:
一樣是用自己編譯的GCC 6.4.0,另外安裝的CMAKE 3.10.2
不一樣的地方是編譯時候的參數設定,編譯方式如下

2018年5月2日 星期三

安裝GROMACS-2018.1在Debian 7.7

將GROAMCS-2018.1安裝在Debian 7.7,而且把gmx執行檔做成fully static executable。在編譯的時候要注意兩點:
  • Debian 7.7預設的GCC是4.7.2,但是GROMACS所需的gcc必須要4.8.1以上,而且必須要支援c++11 implementation,在這邊用的GCC是自行編譯的6.4.0
  • Debian 7.7預設的cmake是2.8.9,但GROMACS必須要3.4.3以上,在這邊用的是CMAKE 3.10.2

2018年5月1日 星期二

安裝GROMACS-2018在Debian 7.7

將GROAMCS-2018安裝在Debian 7.7,而且把gmx執行檔做成fully static executable。在編譯的時候要注意兩點:
  1. Debian 7.7預設的gcc是4.7.2,但是GROMACS必須要4.8.1以上,而且必須要支援c++11 implementation,在這邊用的是自行編譯的gcc 6.4.0
  2. Debian 7.7預設的cmake是2.8.9,但GROMACS必須要3.4.3以上,在這邊用的是cmake 3.10.2

2018年3月2日 星期五

2018年2月12日 星期一

2017年6月10日 星期六

2017年3月24日 星期五

2017年2月20日 星期一

安裝GROMACS-2016.2在CentOS 7

編譯過程參照《Fedora25上編譯GROMACS-2016.2》,cmake參數:
  1. cmake .. -DGMX_BUILD_OWN_FFTW=ON -DCMAKE_INSTALL_PREFIX=/opt/gmx2016.2-cuda8.0 -DGMX_GPU=ON  -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-8.0 -DGPU_DEPLOYMENT_KIT_ROOT_DIR=/usr/local/cuda-8.0
意思是
  1. 編譯GROMACS-2016.2,GPU加速使用CUDA-8.0。安裝位置是/opt/gmx2016.2-cuda8.0,大小是54M
要跑之前記得做
  • sudo nvidia-smi --applications-clocks-permission=UNRESTRICTED
  • source /opt/gmx2016.2-cuda8.0/bin/GMXRC

_EOF_

2017年2月12日 星期日

安裝GROMACS-2016.2在Fedora 25

在Fedora上手動編譯最新的GROMACS-2016.2版。根據官方網站上的Installation Guide,分成下面幾個步驟:
  1. Get the latest version of your C and C++ compilers.
  2. Check that you have CMake version 2.8.8 or later.
  3. Get and unpack the latest version of the GROMACS tarball.
  4. Make a separate build directory and change to it.
  5. Run cmake with the path to the source as an argument
  6. Run make, make check, and make install
  7. Source GMXRC to get access to GROMACS
以下就是在Fedora25上面編譯GROMACS-2016.2的過程。
可以比較在這之前安裝的在Ubuntu14.04上GROMACS-5.12的步驟

2016年10月5日 星期三

模擬Tryptophan cage的分子動態

Tryptophan cage是個人造的蛋白質,長度只有20個氨基酸,序列如下:
NLYIQ WLKDG GPSSG RPPPS

Tryptophan cage在一般的環境下會摺疊成固定的立體結構、稱之為Trp-cage motif。立體結構可以從蛋白質結構資料庫的 1L2Y 下載。由於此結構是用NMR解出來的,會有許多相似的結構。下面的Tryptophan cage的分子動態模擬(molecular dynamics simulation)用NMR的第一個結構當作是初始結構(檔案名稱叫做1L2Ym1.pdb),參數設定參考Justin A. Lemkul寫的《GROMACS Tutorial:Lysozyme in Water》,在Mac上面跑模擬。指令如下:
  1. sudo port install gromacs
  2. port info gromacs
  3. gmx pdb2gmx -f 1L2Ym1.pdb -o processed.gro -ff oplsaa -water tip4p
  4. gmx editconf -f processed.gro -o newbox.gro -c -d 1.0 -bt cubic
  5. gmx solvate -cp newbox.gro -cs tip4p.gro -o solv.gro -p topol.top
  6. gmx grompp -f ions.mdp -c solv.gro -p topol.top -o ions.tpr
  7. gmx genion -s ions.tpr -o solv_ions.gro -p topol.top -nname CL -nn 1    
    選13 SOL
  8. gmx grompp -f minim.mdp -c solv_ions.gro -p topol.top -o em.tpr
  9. gmx mdrun -nt 4 -v -deffnm em
  10. gmx grompp -f nvt.mdp -c em.gro -p topol.top -o nvt.tpr
  11. gmx mdrun -nt 4 -v -deffnm nvt
  12. gmx grompp -f npt.mdp -c nvt.gro -t nvt.cpt -p topol.top -o npt.tpr
  13. gmx mdrun -nt 4 -v -deffnm npt
  14. gmx grompp -f md.mdp -c npt.gro -t npt.cpt -p topol.top -o md.tpr
  15. gmx mdrun -nt 4 -v -deffnm md
  16. gmx trjconv -s md.tpr -f md.xtc -o md_0-1ns_noPBC.xtc -pbc mol -ur compact
    選1 Protein
  17. gmx rms -s em.tpr -f md_0-1ns_noPBC.xtc -tu ns -o rmsd.xvg
    選4 Backbone、再選4 Backbone
  18. gmx gyrate -s md.tpr -f md_0-1ns_noPBC.xtc -o gyrate.xvg
    選1 Protein
  19. gmx trjconv -s md.tpr -f md_0-1ns_noPBC.xtc -o md_0-1ns.pdb
    選1 Proteins

2016年5月23日 星期一

安裝GROMACS-5.1.2在Ubuntu Gnome

在Ubuntu Gnome14.04 自行編譯GROMACS-5.1.2。雖然用apt-get也可以安裝,但自行編譯可以依照某些環境客製化。過程根據Installaion Guide分成下面四大步驟:
  1. 設定環境
    1. apt-get install cmake
    2. apt-get install libboost-dev
    3. apt-get install libxml2-dev
  2. 下載原始碼
    1. wget ftp://ftp.gromacs.org/pub/gromacs/gromacs-5.1.2.tar.gz
  3. 編譯程式
    1. tar zxvf gromacs-5.1.2.tar.gz && cd gromacs-5.1.2
    2. mkdir build && cd build
    3. cmake .. -DGMX_BUILD_OWN_FFTW=ON -DCMAKE_INSTALL_PREFIX=/pkg/gromacs-5.1.2
    4. make -j 2 >& make.log &
    5. make check
  4. 安裝與執行
    1. make install
    2. source /pkg/gromacs-5.1.2/bin/GMXRC
    3. gmx -version
GROMACS-5.1.2的Release Notes,說明文件(PDFHTML)、FAQTurtorials