This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installation `sf` package in R on CentOS fails because `sf` requires gdal >v while CentOS yum install gives gdal v1.11.4. | |
1. Install Sqlite3 from source | |
```bash | |
configure | |
make -j4 | |
sudo make install | |
``` | |
Now system has two versions of Sqlite3 installed. One (old version) by yum, the other (most updated one) we just installed. | |
Executable is installed in: /usr/local/bin/sqlite3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Base: convert, rand, size, getindex, A_mul_B! | |
immutable PLINK1Matrix <: AbstractMatrix{UInt8} | |
m :: Int | |
n :: Int | |
data :: Array{UInt8} | |
end | |
size(M::PLINK1Matrix, i::Int) = i==1 ? M.m : i==2 ? M.n : error() | |
size(M::PLINK1Matrix) = (M.m, M.n) |