Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Population level theta with saf2theta #616

Open
jmhallas opened this issue Mar 6, 2024 · 0 comments
Open

Population level theta with saf2theta #616

jmhallas opened this issue Mar 6, 2024 · 0 comments

Comments

@jmhallas
Copy link

jmhallas commented Mar 6, 2024

Hi,

I'm having a difficult time calculating population level theta with saf2theta. Previously, I used doThetas with no issues taking the average of each theta value per site (no window) with thetaStat print ${POP}.thetas.idx > ${POP}.theta_out. When I use thetaStat print on my .idx file from saf2theta the Watterson's theta values for each site are identical.

#Chromo Pos     Watterson       Pairwise        thetaSingleton  thetaH  thetaL
HiCscaffold1000pilon    24356   -1.524667       -1.473819       -inf    -inf    -inf
HiCscaffold1000pilon    27141   -1.524667       -1.907618       -inf    -inf    -inf
HiCscaffold1000pilon    27176   -1.524667       -1.970972       -inf    -inf    -inf

Does anyone have any suggestions on how to calculate population level Watterson's theta and pi using saf2theta thetas.idx.pestPG output?

#(indexStart,indexStop)(firstPos_withData,lastPos_withData)(WinStart,WinStop)   Chr     WinCenter       tW      tP      tF      tH      tL      Tajima  fuf     fud     fayh    zeng    nSites
(0,16)(24356,30946)(0,30946)    HiCscaffold1000pilon    15473   3.483098        2.829233        0.000000        0.000000        0.000000        -0.570743       1.062633        1.699168        0.565453        -0.656416       16
(0,93)(6813,41599)(0,41599)     HiCscaffold1002pilon    20799   20.245506       22.681104       0.000000        0.000000        0.000000        0.420729        1.962157        2.446160        0.816011        -0.706641       93
(0,5)(30657,35749)(0,35749)     HiCscaffold1003pilon    17874   1.088468        1.205675        0.000000        0.000000        0.000000        0.254946        0.982642        1.102553        0.695251        -0.561985       5

Thanks,

Josh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant