HEIDIFile formatHEIDI reads genotype data in binary PLINK format.
Missing genotype data is imputed by average. Phenotype and covariate files should have at least 3 columns, where the first and second columns match the fam file.
Currently, HEIDI does not handle missing values in the phenotype and covariate files. UsageHEIDI uses the following flags: --bfile arg prefix for BIM/BED/FAM PLINK files --pheno arg file for phenotypes --mpheno arg which phenotype column to use (>=1, default:1) --covar arg file for covariates --out arg prefix for output file --id arg region id --chr arg chromosome ('genomewide' estimates the total heritability) --from-kb arg select region from this position (kb) --to-kb arg up to this position (kb) --from arg select region from this SNP (rsid) --to arg to this SNP (must be on the same chromosome) --rrm-genome arg Realized Relationship Matrix for the whole-genome --nsteps arg number of iterations in grid search (default:20) --log arg log file --maxmem arg maximum Gb RAM usage allowed (default: 2) Input and output file flags--bfile: Prefix for the binary PLINK files. “example” is the prefix for “example.bim”, “example.bed” and “example.fam”. --out: Prefix for the output file, eg: “~/results/test” Region specifications--chr: Chromosome, should match the bim file. --from-kb and --to-kb: Start and end kilobase positions for the genomic region at the specified chromosome. Additional options--rrm-genome: File for the Realized Relationship Matrix for the whole-genome. This option can be used to save time for computing the genome-wide kinship among the individuals. Whole genome heritability estimation./heidi --bfile ~/data/example --chr genomewide --out ~/results/test In this example HEIDI reads these files: and generates these files: Whole chromosome heritability estimationThis example estimates the heritability contribution of chromosome 3. ./heidi --bfile ~/data/example --chr 3 --out ~/results/test In this example HEIDI reads these files: and generates these files: Genomic region heritability estimationThis example estimates the heritability contribution from the first 50Mb region on chromosome 2. ./heidi --bfile ~/data/example --chr 2 --from-kb 0 --to-kb 50000 --id 1 --out ~/results/test In this example HEIDI reads these files: and generates these files: Normalization of heritability estimatesWe mitigate the effect of linkage disequilibrium on heritability estimates by using the following normalization scheme.
First, we estimate the total heritability, followed by estimating the contributions of the chromosomes and scaling their contributions such that their sum equals to the total heritability.
Next, we estimate the heritability contributions of the regions and in each chromosome, normalize the regions’ contributions such that their sum equals to the normalized chromosomal contribution. Once the heritability estimates are obtained, the script heidiNormalize.py can be used to perform the normalization: python heidiNormalize.py outputPrefix eg: python heidiNormalize.py ~/results/test |