Closed TeresaPegan closed 1 year ago
Hi Teresa,
I'm not too familiar with the saf2theta
stuff in realSFS
. However, the winsfs
output has two lines, the second of which should be identical to the output format of realSFS
. Does it solve your problem if you copy the winsfs
output to a new file, delete the first line, and use that as input?
Best, Malthe
Thanks for the lightning-fast response!
I tried this out and found that it seems like I need to both remove the little header from winsfs and fold the SFS before using it with saf2theta (which i am using with fold -1 option). If I do just one or the other, I still get the dimension error. But it looks like I can have it working now, thanks!
Hello! I am excited to upgrade to winsfs in my genotype likelihood analyses.
I am trying to use ANGSD to calculate theta statistics and I'm running into an error when I try to do it with winsfs. Apparently winsfs creates an SFS that has 1 fewer dimensions than realSFS does, and this trips up ANGSD. Does anyone know where this discrepancy comes from? Is there a way to edit the winsfs output so that it's in the form ANGSD expects?
For now I will have to stick with realSFS, but please let me know if there is a way to get around this and use winsfs!
Thanks, -Teresa
Code with winsfs:
Error message:
The error remains even if I fold the winsfs SFS first using winsfs view -f.
I do not get this problem (or should I say pxroblem) when I use realSFS to make the SFS like this. With the realSFS SFS, saf2theta successfully creates a thetas file.