ScAlaBle Estimator Regressor
curl https://sh.rustup.rs -sSf | sh
rustup toolchain install nightly
rustup default nightly
For more details please visit https://www.rust-lang.org/tools/install and https://github.com/rust-lang/rustup.rs#working-with-nightly-rust
RUSTFLAGS='-L /path/to/OpenBLAS -lopenblas -C target-cpu=native' cargo build --release
where /path/to/OpenBLAS
is the path to the directory containing the OpenBLAS libraries.
Inside the saber top level directory, the executables generated by the build process will be located in ./target/release
Some executables of interest:
``` ./target/release/partitionbychrom -h partitionbychrom 0.1 Aaron Zhou
USAGE:
partitionbychrom --bim
FLAGS: -h, --help Prints help information -V, --version Prints version information
OPTIONS:
-b, --bim
``` ./target/release/estimateheritability -h estimateheritability 0.1 Aaron Zhou
USAGE:
estimate_heritability [OPTIONS] --nrv
FLAGS: -h, --help Prints help information -V, --version Prints version information
OPTIONS:
--lowest-maf
``` ./target/release/estimateggxgheritability -h estimatemultigxgheritability 0.1
USAGE:
estimateggxg_heritability [OPTIONS] --le
FLAGS: -h, --help Prints help information -V, --version Prints version information
OPTIONS:
--gxg-partition
--nrv <num_random_vecs>
The number of random vectors used to estimate traces
Recommends at least 100 for small datasets, and 10 for huge datasets
--partition <partition_file>
A file to partition the G SNPs into multiple components.
Each line consists of two values of the form:
SNP_ID PARTITION
For example,
rs3115860 1
will assign SNP with ID rs3115860 in the BIM file to a partition named 1
-p, --pheno <pheno_path>...
The header line should be
FID IID PHENOTYPE_NAME
where PHENOTYPE_NAME can be any string without white spaces.
The rest of the lines are of the form:
1000011 1000011 -12.11363
-b, --bfile <plink_filename_prefix>
If we have files named
PATH/TO/x.bed PATH/TO/x.bim PATH/TO/x.fam
then the <plink_filename_prefix> should be path/to/x
```