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

Weird binning in Heterozygosity values #33

Open
jayyeam opened this issue Apr 11, 2023 · 1 comment
Open

Weird binning in Heterozygosity values #33

jayyeam opened this issue Apr 11, 2023 · 1 comment

Comments

@jayyeam
Copy link

jayyeam commented Apr 11, 2023

Hello!

I am working on a dataset that has 70 samples and ~540,000 snps grouped into two different populations. I was working through the tutorial and created a plot looking at outlier$results$FST and outlier$results$He. However, of my 540,000 snps, I only find 131 unique He values. I have followed the tutorial precisely, and haven't made any adjustments, so I am curious whether this is something to be expected. Here is the code:

outlier <- OutFLANK(FstDataFrame,NumberOfSamples = 70,
RightTrimFraction = 0.06, LeftTrimFraction = 0.35,
qthreshold = 0.05, Hmin = 0.1)
OutFLANKResultsPlotter(outlier, withOutliers = TRUE, NoCorr = TRUE, Hmin = 0.1,
binwidth = 0.005, Zoom = FALSE, RightZoomFraction = 0.05,
titletext = NULL)

plot(outlier$results$He, outlier$results$FST, pch=20, col="grey")
points(outlier$results$He[outlier$results$qvalues<0.01], y = outlier$results$FST[outlier$results$qvalues<0.01], pch=21, [col="blue")]
image

I have also created a manhattan plot using the qvalues from OutFLANK, and it appears normal. So I am hoping to get some insights as to why the Heterozygosity looks so strange.
image

Thank you!
Jay

@DrK-Lo
Copy link
Collaborator

DrK-Lo commented Apr 16, 2023 via email

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

2 participants