Open MboiTui opened 4 months ago
ngsStat is largely surpassed by all new features in ANGSD and I am not sure which statistics you are calculating is not present in ANGSD. To go back to your error message, that typically happens if either the number of sites or the number of individuals is not correct. Have you run the routine to get the nr of overlapping sites? Nind is the number of diploid individuals.
Hello,
I am trying to use ngsStat to estimate Dxy between my populations.
To achieve this I am following the ngsTools tutorial.
First, I produce saf files with ANGSD using an ancestral outgroup to unfold the spectrum.
Then i use realSFS to find the intersection between the two populations
Then I use angsd to produce the saf files for each population only for the overlapping sites
In this example, pop1 has 4 individuals and pop2 has 6. Both diploid.
The number of overlapping sites is 935,523,322
When I try and run ngsStats as follows (after doing
zcat ...saf.gz > ...saf
I get the error:
Possible error reading SFS, binary file might be broken...
It is unclear what I have to put for nind, so i tried both
8 12
and4 6
.I saw closed issue #5 in the ngsPopGen repository, but it did not help. I can provide the gzipped saf files if that can help with troubleshooting.
Cheers, LVB