So I wonder if it was ever solved?
Below my code:
I converted my genlight file to geno (.lfmm) with gl2geno (dartR2.7.2) and then reading the file with read.pcadapt
<
my.dataset_PCAdapt_file_gl2geno = read.pcadapt(
"C:/Users/scatag/my.dataset_geno_dev.lfmm",
type = c("pcadapt"),
type.out = c("matrix"),
allele.sep = c("/"))
my.dataset_PCAdapt_file_gl2geno_PCADAPTres <- pcadapt(
input = my.dataset_PCAdapt_file_gl2geno ,
K = 50)
qval <- qvalue(
my.dataset_PCAdapt_file_gl2geno_PCADAPTres$pvalues)$qvalues
alpha <- 0.1
outliers_my.dataset_PCAdapt_file_gl2geno <- which(qval < alpha)
length(outliers_my.dataset_PCAdapt_file_gl2geno) # 96
outliers_my.dataset_PCAdapt_file_gl2geno # 4 431 759 939 1035 1401 ....
>
It gives me only the index of the outliers, not the name...
I would love some feedback and advice on how to proceed.
Also, anyone would recommend other outlier detection methods? Outflank detects 0 outliers and pcadapt 96 outliers in the same dataset, so I am unsure of which would be more correct. It would be interesting to try a different method and see what the results of the 3rd method are closest to.
Thank you for your help!
Best
Gabriella