Closed V-Z closed 6 years ago
Hi,
Thanks for reporting the issue. It seems that the issue comes from the converter vcf2pcadapt (which we are recoding currently due to some inconsistencies). It shouldn't have displayed
Reading file DATA.vcf.gz...
but instead it should have shown
Reading file DATA.pcadapt...
That means that pcadapt is running on the vcf.gz file instead of the converted file. The issue probably comes from the fact that I never considered running pcadapt on vcf.gz, so the output file name is bugged.
So from what I understand, there are two options:
pcadapt("filename.pcadapt", K = 35, ...)
We are recoding pcadapt so any suggestion (or bug report) is welcome. Tell me if this worked for you.
Cheers,
Keurcien
Hello,
thank You for fast reply. Interestingly, If I run read.pcadapt
as in my 1st comment, the R object DATA.pcadapt.data
contains:
> DATA.pcadapt.data
[1] "DATA.vcf.gz"
pcadat creates in the working directory file tmp.pcadapt
.
If I run same read.pcadapt
on uncompressed VCF, I see
> DATA.pcadapt.data
[1] "DATA.pcadapt"
but next step fails:
> DATA.pcadapt <- pcadapt(input=DATA.pcadapt.data, ...)
Error in pcadapt(input = DATA.pcadapt.data, K = 35, method = "mahalanobis", :
File DATA.pcadapt does not exist.
In the working directory, there is only file tmp.pcadapt
.
If I run pcadapt()
on that file like pcadapt(input="tmp.pcadapt", ...)
it works well.
Ok thanks for the feedback, sorry for the inconvenience. I'm kinda relieved as it is less a hassle to debug. But still, thanks for pointing that out. So yeah you should use the tmp.pcadapt for the moment, until next version (we expect the new release to come out in January 2018).
I'm closing this issue since the new version has been released.
Hello, I ran the analysis like this:
This is weird as the
genind
object greated from the input VCF looks correctly like this:So there is something very wrong with pcadapt. Any idea, what is wrong, please?