Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
66b2c34
Add files via upload
alipazokit Oct 1, 2020
21f425a
Update test.sh
alipazokit Oct 1, 2020
af54b96
Delete genotype.h
alipazokit Oct 1, 2020
2e2245e
Add files via upload
alipazokit Oct 1, 2020
89e93e7
Add files via upload
alipazokit Oct 1, 2020
75e52b4
Add files via upload
alipazokit Oct 1, 2020
916b30e
Delete arguments.h
alipazokit Oct 1, 2020
dca5342
Delete helper.h
alipazokit Oct 1, 2020
02a5651
Delete storage.h
alipazokit Oct 1, 2020
751c21a
Delete mailman.h
alipazokit Oct 1, 2020
5c04168
Add files via upload
alipazokit Oct 1, 2020
3ccf6fe
Delete genotype.cpp
alipazokit Oct 1, 2020
c687a90
Add files via upload
alipazokit Oct 1, 2020
df24315
Delete 1.bed
alipazokit Oct 1, 2020
4ade7bb
Delete 2.bed
alipazokit Oct 1, 2020
dd80734
Update test.sh
alipazokit Oct 1, 2020
66f5dea
Add files via upload
alipazokit Oct 1, 2020
cab0201
Add files via upload
alipazokit Oct 1, 2020
5d95fbd
Add files via upload
alipazokit Oct 1, 2020
a20a8f9
Add files via upload
alipazokit Oct 1, 2020
edc1d4d
Update test.sh
alipazokit Oct 1, 2020
bb4d005
Update test.sh
alipazokit Oct 1, 2020
be4f070
Update README.md
alipazokit Oct 1, 2020
ee33e63
Update README.md
alipazokit Oct 1, 2020
adcfe64
Delete 1.bim
alipazokit Oct 1, 2020
8c61e72
Delete 1.bim
alipazokit Oct 1, 2020
fd21014
Delete 1.fam
alipazokit Oct 1, 2020
5fb188d
Delete 1.fam
alipazokit Oct 1, 2020
a82c713
Delete 2.bim
alipazokit Oct 1, 2020
82ac892
Delete 2.bim
alipazokit Oct 1, 2020
2ba5477
Delete 2.fam
alipazokit Oct 1, 2020
a374bbe
Delete 2.fam
alipazokit Oct 1, 2020
d9cee08
Delete adr.txt
alipazokit Oct 1, 2020
7eab3f8
Delete adr.txt
alipazokit Oct 1, 2020
781368d
Delete annot.txt
alipazokit Oct 1, 2020
e9d1f3d
Delete annot.txt
alipazokit Oct 1, 2020
8bfb8bf
Delete sample.annot.txt
alipazokit Oct 1, 2020
fd0263a
Delete sample.annot.txt
alipazokit Oct 1, 2020
2501d59
Delete sample.pheno.plink
alipazokit Oct 1, 2020
a5deb0f
Delete sample.pheno.plink
alipazokit Oct 1, 2020
af3e5d4
Delete sample.cov
alipazokit Oct 1, 2020
266c87b
Delete sample.cov
alipazokit Oct 1, 2020
1468074
Delete small.bim
alipazokit Oct 1, 2020
ef50355
Delete small.bim
alipazokit Oct 1, 2020
a76c27b
Delete small.cov
alipazokit Oct 1, 2020
7543f87
Delete small.cov
alipazokit Oct 1, 2020
c3675e9
Delete small.log
alipazokit Oct 1, 2020
79ed65f
Delete small.log
alipazokit Oct 1, 2020
89f79a9
Delete small.fam
alipazokit Oct 1, 2020
0cc3de6
Delete small.fam
alipazokit Oct 1, 2020
5b87d0b
Add files via upload
alipazokit Oct 1, 2020
eb6f2db
Add files via upload
alipazokit Oct 1, 2020
fcfce69
Update README.md
alipazokit Oct 1, 2020
d0009a7
Update README.md
alipazokit Oct 1, 2020
6a045b8
Update README.md
alipazokit Oct 1, 2020
6b98157
Update README.md
alipazokit Oct 1, 2020
c6ec97e
Update README.md
alipazokit Oct 1, 2020
ff1ae85
Update README.md
alipazokit Oct 1, 2020
0493213
Update README.md
alipazokit Oct 1, 2020
b1b13bc
Update README.md
alipazokit Oct 1, 2020
7ce632b
Update rhemc_ldsc_her_def_stream.cpp
alipazokit Oct 1, 2020
2052b06
Update rhemc_ldsc_her_def_stream.cpp
alipazokit Oct 1, 2020
b6078a6
Update rhemc_ldsc_her_def_stream.cpp
alipazokit Oct 2, 2020
f97232b
Update rhemc_ldsc_her_def_stream.cpp
alipazokit Oct 2, 2020
8b24306
Update README.md
alipazokit Oct 9, 2020
dac4326
Update README.md
alipazokit Oct 9, 2020
5d1a6ac
Add files via upload
alipazokit Oct 9, 2020
2a87db4
Add files via upload
alipazokit Oct 9, 2020
7bef603
Update CMakeLists.txt
alipazokit Oct 9, 2020
db969b2
Update CMakeLists.txt
alipazokit Oct 9, 2020
59ef3d1
Create dom_jack_stream.cpp
Nov 7, 2020
427fb6e
Create dom_jack_stream.cpp
Nov 7, 2020
6cef195
Update CMakeLists.txt
alipazokit Nov 7, 2020
4e90c76
Update CMakeLists.txt
alipazokit Nov 7, 2020
bc71505
Update README.md
alipazokit Nov 7, 2020
53b2572
Update README.md
alipazokit Nov 7, 2020
4a7f42c
Merge branch 'master' into master
alipazokit Nov 7, 2020
c7b5d9b
Merge branch 'master' into master
alipazokit Nov 7, 2020
5d6497f
Update rhemc_cov_ldsc_her_def.cpp
alipazokit Nov 24, 2020
a2d0d17
Update rhemc_cov_ldsc_her_def.cpp
alipazokit Nov 24, 2020
c80edd4
Delete small.cov
alipazokit Nov 24, 2020
7028e9c
Delete small.cov
alipazokit Nov 24, 2020
90532ad
Delete small_git.bed
alipazokit Nov 24, 2020
f757fe9
Delete small_git.bed
alipazokit Nov 24, 2020
bc9761a
Delete small_git.bim
alipazokit Nov 24, 2020
68ff2bf
Delete small_git.bim
alipazokit Nov 24, 2020
3548b53
Delete small_git.fam
alipazokit Nov 24, 2020
db8641d
Delete small_git.fam
alipazokit Nov 24, 2020
8fa2c4c
Merge pull request #2 from sriramlab/master
alipazokit Nov 25, 2020
1373112
Merge pull request #2 from sriramlab/master
alipazokit Nov 25, 2020
6916f08
add new example
Nov 25, 2020
ebcc53e
add new example
Nov 25, 2020
345d71f
Delete small.phen
alipazokit Nov 25, 2020
3e1ef43
Delete small.phen
alipazokit Nov 25, 2020
6433676
Update rhemc_cov_ldsc_her_def.cpp
alipazokit Jan 8, 2021
3d33a38
Update rhemc_cov_ldsc_her_def.cpp
alipazokit Jan 8, 2021
9efaa31
Update README.md
alipazokit Jan 11, 2021
fea7c5a
Update README.md
alipazokit Jan 11, 2021
2f7db51
Update rhemc_cov_ldsc_her_def.cpp
alipazokit Jan 27, 2021
21750fe
Update rhemc_cov_ldsc_her_def.cpp
alipazokit Jan 27, 2021
ff5335e
Update rhemc_cov_ldsc_her_def.cpp
alipazokit Jan 28, 2021
864c893
Update rhemc_cov_ldsc_her_def.cpp
alipazokit Jan 28, 2021
ff8160a
Merge branch 'alipazokit-master' of https://github.com/alipazokit/RHE…
Apr 12, 2021
c8f9f40
Merge pull request #4 from alipazokit/alipazokit-master
alipazokit Apr 12, 2021
dedc948
Merge branch 'master' of https://github.com/alipazokit/RHE-mc
Apr 12, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ IF (NOT DEFINED DEBUG)
ENDIF()
ADD_DEFINITIONS(-DDEBUG=${DEBUG})

add_executable(RHEmc src/rhemc_ldsc_her_def_stream.cpp src/genotype.cpp src/storage.cpp)
add_executable(RHEmc src/rhemc_cov_ldsc_her_def.cpp src/genotype.cpp src/storage.cpp)
add_executable(RHEmc_dom src/dom_jack_stream.cpp src/genotype.cpp src/storage.cpp)
31 changes: 22 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Randomized Heritability Estimation for Multi-variance Components
## Prerequisites
The following packages are required on a linux machine to compile and use the software package.
```
g++
g++ (4.4.7)
cmake
make
```
Expand All @@ -27,17 +27,23 @@ An executable file named RHEmc will be in build folder after the installation st
```
./RHEmc <command_line arguments>
```
To estimate dominance heritability and additve heritability jointly run :

```
./RHEmc_dom <command_line arguments>
```

## Parameters

```
genotype (-g) : The path of genotype file
phenotype (-p): The path of phenotype file
covariate (-c): The path of covariate file
annotation (-annot): The path of annotation file.
num_vec (-k) : The number of random vectors (10 is recommended)
num_block (-jn): The number of jackknife blocks. (100 is recommended)
num_vec (-k) : The number of random vectors (10 is recommended).
num_block (-jn): The number of jackknife blocks. (100 or 22 are recommended). The higher number of jackknife blocks the higher memory usage.
out_put (-o): The path of output file.
memory efficent mode (-mem): The flag states whether to use a memory effecient version of code. The memory efficient version is a little slower than the not efficient version (default: false)


```
## File formats
Expand All @@ -47,17 +53,24 @@ Phenotype: It must have a header in the following format: FID IID name_of_phenot
Covariate: It must have a header in the following format: FID IID name_of_cov_1 name_of_cov_2 . . . name_of_cov_n
Annotation: It has M rows (M=number of SNPs) and K columns (K=number of annotations). If SNP i belongs to annotation j, then there is "1" in row i and column j. Otherwise there is "0". (delimiter is " ")

1) Order of individuals must be same in phenotype, gentype and covariate files.
2) Order of SNPs must be same in bim file and annotation file.
3) Annotation file does not have a header.
1) Number and order of individuals must be same in phenotype, gentype and covariate files.
2) Number and order of SNPs must be same in bim file and annotation file.
3) Annotation file does not have a header. The code supports overlapping annotations (e.g : functional annotation)
4) SNPs with MAF=0 must be excluded from the genotype file.
5) RHE-mc excludes individuals with NA values in the phenotype file from the analysis.
```
## Toy example
To make sure that everything works well, sample files are provided in example directory. Look at test.sh file and run it :
```
```


chmod +x test.sh
./test.sh

```

## Citation
```
Pazokitoroudi, A., Wu, Y., Burch, K.S. et al. Efficient variance components analysis across millions of genomes. Nat Commun 11, 4020 (2020). https://doi.org/10.1038/s41467-020-17576-9
```


100 changes: 0 additions & 100 deletions example/1.bim

This file was deleted.

200 changes: 0 additions & 200 deletions example/1.fam

This file was deleted.

Loading