Skip to content

Commit e8ccf8e

Browse files
authored
Added faq
1 parent 433b27d commit e8ccf8e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ The map files (`--map`) should be in the same format as used by [Selscan](https:
105105
### Output file formats ###
106106

107107
- ehhbin outputs five columns. The first three being the locus' ID and its genetic and physical positions. These are followed by two columns corresponding to the EHH for each of the alleles at this locus (allele coded as 0 then 1).
108-
- ihsbin outputs two files, the first containing unstandardised iHS for allele 0 and the second (with the .std extension) containing the corresponding standardised iHS (alleles grouped in to 2% frequency bins for standardisation by default). Each of these output files contains two columns: the SNP locus id (as specified in the map file) and corresponding iHS value.
108+
- ihsbin outputs a file with each allele's iHH value (iHH_0 and iHH_1) as well as the unstandardised and standardised iHS values (alleles grouped in to 2% frequency bins for standardisation by default). The first column is the SNP locus id (as specified in the map file).
109109
- xpehh outputs a file containing five columns: the SNP locus id (as specified in the map file), corresponding iHH values and finally the XP-EHH value.
110110

111111
### Examples ###
@@ -123,3 +123,9 @@ Example command for calculating XP-EHH with default values for minor allele freq
123123
./xpehhbin --hapA 1000GP_Phase3.GBR.chr22.hap --hapB 1000GP_Phase3.YRI.chr22.hap --map chr22.map --out chr22_GBRvsYRI_XPEHH
124124

125125
Each of the input files referred to in these examples can be found in the data directory.
126+
127+
### Frequently asked questions ###
128+
129+
**1. Why do selscan and hapbin give me slightly different iHS values with the same input data?**
130+
131+
By default selscan calculates homozygosity values using binomial coefficents. Hapbin uses the sum of the squared haplotype frequencies which can also be used by selscan using the --alt flag. When the --alt flag is used with selscan the two approaches should be comparable.

0 commit comments

Comments
 (0)