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

which "project" object you mean here? #2

Open
Dahn-YoungDong opened this issue Nov 30, 2020 · 1 comment
Open

which "project" object you mean here? #2

Dahn-YoungDong opened this issue Nov 30, 2020 · 1 comment

Comments

@Dahn-YoungDong
Copy link

###7.3. FST OUTLIER DETECTION
#A. Compute results for the best run
res = Gettess3res(tess3.ls, K=optimal_K)
#B. Select FST statistics for the best run
FST = res$Fst
#C. Compute the GIF - genomic inflation factor
lambda = res$gif
lambda # 3.750238
#D. Compute adjusted p-values from the combined z-scores and plot histogram of p-values
n = dim(Q(project, run, optimal_K))[1]
z.scores = sqrt(FST*(n-optimal_K)/(1-FST))
adj.p.values = pchisq(z.scores^2/lambda, df = optimal_K-1, lower = FALSE)
hist(adj.p.values, col = "red")

Hello Jeronymo,

I am at this chunk of code, using tess3 method to do spatial genetic structuring.

at the line 905, which "project" object do you mean? Maybe you mean the best run object called "res" at line 895?

Thanks,

@jdalapicolla
Copy link
Owner

jdalapicolla commented Nov 30, 2020 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