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

Is there a version of permuteGPAT that can permute XP-EHH score ? #9

Open
xiagjt opened this issue Feb 14, 2017 · 4 comments
Open

Is there a version of permuteGPAT that can permute XP-EHH score ? #9

xiagjt opened this issue Feb 14, 2017 · 4 comments

Comments

@xiagjt
Copy link

xiagjt commented Feb 14, 2017

Hi. It is so good for me to use your code like GPAT. Recently, I am calculating the XP-EHH for a crop population. I have got the XP-EHH scores for every SNP site, However, I have no idea to do the permutation for a p value. Could you tell me how to do that ? Thanks in advance!

@zeeev
Copy link
Owner

zeeev commented Feb 15, 2017

@xiagjt If you're taking the absolute value of XP-EHH (abs(XP-EHH)) you can just match the wcFst format and use the permuteGPAT++ code.

@xiagjt
Copy link
Author

xiagjt commented Feb 16, 2017

The XP-EHH is directional. If I want to keep the negative value, the permuteGPAT++ code will work ? OR I follow your suggestion and append the P value to the previous directional XP-EHH score.

@krystal915
Copy link

hi, zeeev! permuteGPAT++ is really a exellent tool! You said that we can match the wcFst format and use the permuteGPAT++ code to test other dataset. I wonder if the 'format' you mean is just the column number and oder, which do not related with its content.
eg. "scaffold1 0 20000 512 0.157" is the same as "scaffold1 1 1 1 0.157" when appling permutation test!

cheers!

@zeeev
Copy link
Owner

zeeev commented Apr 27, 2018

Hi @krystal915,

Thanks for the kind words. You're absolutely correct, just match the column number and order. I would also recommend that you use the main VCFLIB (https://github.com/vcflib/vcflib). It has the same functionality, but I'm not supporting this fork anymore.

--Zev

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

3 participants