Closed rlfrench closed 3 years ago
Same here! I'm also getting the same error while trying to read a vcf file using tidy_genomic_data function
I will add to this, I am also getting the same error as the people above. My vcf file comes from ipyrad's output files. Is there a problem with vcf from ipyrad?
-Dylan
try with latest release please if still relevant
Hello Thierry,
Describe the bug I'm having difficulty reading a vcf file into R using read_vcf and converting my file to bayescan format using genomic_converter. In both cases, I get the same error message related to a size incompatibility (see full description of the error message below). I generated the vcf file in Stacks 2.3e then filtered it in vcftools, and I'm working with Mac OS 10.14.5. I noticed that the same error message is mentioned here: https://github.com/thierrygosselin/radiator/issues/109, but I think the error I'm getting will require a different solution because bayescan is implemented as an output option for genomic_converter.
To Reproduce
I tried to read my vcf (2200 SNPs, 49 individuals) into R using:
And I got the following error:
I checked rlang::last_error() and saw the following:
I then tried importing my data using the vcf.R function from vcfR:
And that was successful.
After my unsuccessful attempts to read in my file using read_vcf, I tried to use genomic_converter to convert my data from vcf format to bayescan format:
Again, I got an error message related to size incompatibility:
My
devtools::session_info()
is as follows:I have attached the first 40 lines of my vcf file here: vcf_subset.txt