So, I can read the vcf file into R using read.vcf, but I cannot seem to get seqVCF2GDS to work. I have tried the following code:
> vcf_test1 <- read.vcf("/Users/Desktop/batch_1.vcf")
Reading 10000 / 10000 loci.
Done.
> vcf.fn <- "C:/Users/Desktop/batch_1.vcf"
> seqarray_test1 <- seqVCF2GDS(vcf.fn)
Error in stopifnot(is.character(out.fn), length(out.fn) == 1L) :
argument "out.fn" is missing, with no default
> vcf.fn = "C:/Users/Desktop/batch_1.vcf"
> seqarray_test1 <- seqVCF2GDS(vcf.fn, "mangrove.gds")
Error in file(vcf.fn[1L], open = "rt") : cannot open the connection
In addition: Warning message:
In file(vcf.fn[1L], open = "rt") :
cannot open file 'C:/Users/Desktop/batch_1.vcf': No such file or directory
I am not sure what I am doing wrong