imaging genetics with scientific linux 6.4
DESCRIPTION
Imaging Genetics with Scientific Linux 6.4. Bennett Landman Mary Ellen Koran Tricia Thornton- Wells January 20, 2014 version 1.0. Log in. We are using SL 6.4 On VMWare Fusion 6. Add the local user to sudoers so that you don ’ t need to be root. Use “ su ” then visudo . Part 1. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/1.jpg)
1
Imaging Genetics with Scientific Linux 6.4
Bennett LandmanMary Ellen Koran
Tricia Thornton-Wells
January 20, 2014 version 1.0
![Page 2: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/2.jpg)
2
Log in. We are using SL 6.4 On VMWare Fusion 6
![Page 3: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/3.jpg)
3
Add the local user to sudoers so that you don’t need to be root. Use “su” then visudo.
![Page 4: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/4.jpg)
4
Setting up SOLAR (with ECLISPE)Part 1
![Page 5: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/5.jpg)
5
Edit ~/.solar_reg and type the key for your SOLAR user
![Page 6: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/6.jpg)
6
Go to the SOLAR website.
![Page 7: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/7.jpg)
7
Download the most recent stable version of SOLAR. We are using the October 2013 release.
![Page 8: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/8.jpg)
8
Create a directory for solar. We are using ~/solar. Unpack the download.
![Page 9: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/9.jpg)
9
Install it: ./install_solar `pwd` `pwd`
![Page 10: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/10.jpg)
10
Install rlwrap: ./install_rlwrap
![Page 11: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/11.jpg)
11
Install the libgfortran.so.1 library (not included by default).
![Page 12: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/12.jpg)
12
Make sure that solar starts without core dumping.
![Page 13: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/13.jpg)
13
Aside: If you are using CENTOS 6.5 or Ubuntu 12.04 LTS (or other recent Linux)
Copy libgfortran.so.1 to the solar/lib directory.
Here is a copy that we pulled from Scientific Linux 6.4 64 bit:https://masi.vuse.vanderbilt.edu/index.php/File:Libgfortran.so.1.zip
![Page 14: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/14.jpg)
14
Add the solar directory to your path
![Page 15: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/15.jpg)
15
Setting up OpenMX (with R and Rstudio)
Part 2
![Page 16: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/16.jpg)
16
Download the source for R 2.15.3 (NOT 3.X.X)
![Page 17: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/17.jpg)
17
Make a directory for R. We are using ~/R. Unpack the download.
![Page 18: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/18.jpg)
18
Run ‘sudo ./configure –enable-R-shlib’We are not worried about building HTML manuals.
![Page 19: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/19.jpg)
19
Run ‘sudo make ’
![Page 20: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/20.jpg)
20
Run ‘make check’Verify that there are no errors.
![Page 21: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/21.jpg)
21
Add R’s bin directory to your path
![Page 22: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/22.jpg)
22
Log out. Log in. Download R studio (without installer)
![Page 23: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/23.jpg)
23
Make a directory for R studio and unpack the tar.gztar xvzf ~/Downloads/rstudio-0.98.490-x86_64-fedora.tar.gz
![Page 24: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/24.jpg)
24
Test by running ./rstudio
![Page 25: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/25.jpg)
25
Add rstudio/bin to your path
![Page 26: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/26.jpg)
26
Log out and log in to complete the install process.
![Page 27: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/27.jpg)
27
Running SOLAR and OpenMX with Simulated Data (for ACE models)
Part 3
![Page 28: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/28.jpg)
28
Download the example scripts.~/Desktop/MEK_ACE_Demo_R_Scripts
![Page 29: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/29.jpg)
29
Install R package g-plots on the command line (needed for 2.15 support)
• curl -O http://cran.ma.imperial.ac.uk/src/contrib/Archive/gplots/gplots_2.6.0.tar.gz• tar xzf gplots_2.6.0.tar.gz
• cat <<EOF > /tmp/inst.sh
• options(repos=structure(c(CRAN="http://cran.ma.imperial.ac.uk")))
• install.packages("gtools")• install.packages("gdata")• install.packages("gplots", repos = NULL, type="source")• EOF
• Rscript /tmp/inst.sh
![Page 30: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/30.jpg)
30
Gplots installed
![Page 31: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/31.jpg)
31
Open R studio and open the first file.
![Page 32: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/32.jpg)
32
Install OpenMX in R with:source('http://openmx.psyc.virginia.edu/getOpenMx.R')
![Page 33: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/33.jpg)
33
Install package psychinstall.packages(pkgs = ‘psych’)
![Page 34: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/34.jpg)
34
Install package reshape2 install.packages(pkgs = ‘reshape2’)
![Page 35: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/35.jpg)
35
You can browse the code and run line by line with the editor.
![Page 36: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/36.jpg)
36
WARNING• Running Step 1 (R simulation and OpenMX) takes about
12 hours*.• Running Step 2 (SOLAR commands) takes about • Running Step 3 (aggregating and graphing results) takes
about
* on a single core of a 2.9 GHz i7 Macbook.
![Page 37: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/37.jpg)
37
You can run the demos from the command line with R in each of the directories:
• mkdir ~/MEKDemo• R < Solar_OpenMX_simulatetwins2.R --no-save > Solar_OpenMX_simulatetwins2.R.log
• R < Solar_OpenMX_simulatetwins_Common.R --no-save > Solar_OpenMX_simulatetwins_Common.R.logR < Simulate_nuc_ACE_Solar.R --no-save > Simulate_nuc_ACE_Solar.R.log
• R < Simulate_grandnuc_ACE_Solar.R –no-save > Simulate_grandnuc_ACE_Solar.R.log
![Page 38: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/38.jpg)
38
You can watch the jobs run with “top”
![Page 39: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/39.jpg)
39
The OpenMX R files general script files for SOLAR. In production, we submit these to a cluster for quick
processing.
![Page 40: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/40.jpg)
40
Create a partition to store the output data
• The simulations in “R_Scripts” create 11.5M files in 27GB. This causes problems for “ext”, “fat”, and “ntfs” file systems. We strongly recommend using zfs to create a file system that can handle many small files. We created a second 32 GB disk and attached it to our VM.
![Page 41: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/41.jpg)
41
To install zfs
• Using: http://zfsonlinux.org/epel.html• sudo yum localinstall --nogpgcheck http://
archive.zfsonlinux.org/epel/zfs-release-1-3.el6.noarch.rpm
• sudo yum install zfs sudo yum install zfs
![Page 42: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/42.jpg)
42
To initialize zfs to the 2nd virtual hard drive
• zfs create –f data /dev/sdb1
• Then, zfs will automatically mount the data to /data
• [landmaba@localhost twins]$ df -h• Filesystem Size Used Avail Use% Mounted
on• /dev/mapper/VolGroup-lv_root 26G 6.3G 18G 27% /• tmpfs 935M 376K 935M 1% /dev/shm• /dev/sda1 485M 63M 398M 14% /boot• data 32G 27G 4.4G 87% /data
![Page 43: Imaging Genetics with Scientific Linux 6.4](https://reader036.vdocuments.site/reader036/viewer/2022062410/5681660f550346895dd95375/html5/thumbnails/43.jpg)
43
That’s it.
• You can run the R scripts in the R_Scripts and LiveDemo desktop folder on the Virtual Machine.
• Or, you can download the R scripts from the documents area.
• For questions or concerns, please contact [email protected]