vcflib icon indicating copy to clipboard operation
vcflib copied to clipboard

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

Open xiagjt opened this issue 8 years ago • 4 comments

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!

xiagjt avatar Feb 14 '17 01:02 xiagjt

@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.

zeeev avatar Feb 15 '17 16:02 zeeev

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.

xiagjt avatar Feb 16 '17 02:02 xiagjt

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!

krystal915 avatar Apr 26 '18 03:04 krystal915

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

zeeev avatar Apr 27 '18 04:04 zeeev