Sliding window analysis for angsd output
1
0
Entering edit mode
4.6 years ago
wumy • 0

Hi everyone,

I am trying to do a sliding window analysis on my dxy output from ANGSD. My data is whole-genome and I have calculated dxy for all chromosomes using calcDxy.R in the ANGSD script folder. I have obtained a file with 3 columns: Position, Dxy, Chromosome. I have around 11 million SNPs, thus 11 million Dxy values in the text file.

I would like to do a sliding window analysis of 50K bp window and 10K step on the dxy output file. Does anyone have any idea how to accomplish this?

angsd dxy sliding window SNP next-gen • 2.4k views
ADD COMMENT
0
Entering edit mode
4.2 years ago
axelwilhelm ▴ 120

Matteo Fumagalli has this tutorial

https://github.com/mfumagalli/ngsTools/blob/master/TUTORIAL.md

It has a section about nucleotide diversity with sliding window R scripts

ADD COMMENT

Login before adding your answer.

Traffic: 1985 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6