Closed jcaccavo closed 1 year ago
If you remove the lines in the VCF that contains ##contig
it should take seconds instead of minutes to read the VCF. On my computer: 11 sec not 6 min...
So this should work, with or without using the strata argument.
test1 <- radiator::read_vcf(data = "3_subarea_p3_p1r0.6_populations.snps.vcf", strata = "strata_subarea.tsv")
confirm it work with the new radiator version (1.2.6)
using 48.1, 48.2, 48.4 to name your pops / strata, might generate a lot of problems in my package and others as well...
re-open the issue if you're still having problem
Hi Thierry and others with this issue,
I'm re-posting my comment from #168 as it is a closed thread and perhaps it's better to re-open a new thread to address the issue.
I too have this same issue (an error referring to a "The GDS node "$ref" does not exist.") when trying to run radiator::filter_rad. For me, it's with a .vcf file produced in Stacks as the input.
You can download the .vcf file from my dropbox, as well as the strata file.
I have radiator version 1.2.5.
I tried just reading the vcf file (radiator::read_vcf), and also got the same error.
Below are the commands I used and the radiator output (including this error).
Thanks in advance for your help! :)
data <- radiator::filter_rad(data = "3_subarea_p3_p1r0.6_populations.snps.vcf", strata = "strata_subarea.tsv", output = "tidy", interactive.filter = TRUE, verbose = TRUE, parallel.core = parallel::detectCores() - 1)
test1 <- radiator::read_vcf("3_subarea_p3_p1r0.6_populations.snps.vcf")