Dear all,
I am working on R and using the rehh package. I am converting the vcf file to an object of haplohh-class using the command
> hp_vcf <- data2haplohh(hap_file = "sample.vcf", polarize_vcf = FALSE, vcf_reader = "data.table", chr.name = "CM004562.1", verbose = TRUE)
But I am getting an error
* Reading input file(s) *
Using package 'data.table' to read vcf.
Extracting map information.
Extracting haplotypes.
Number of individuals which are
Haploid Diploid Triploid, ... :
1 2
0 1
Error in mapply(function(x, y) { :
zero-length inputs cannot be mixed with those of non-zero length
Someone please help me in resolving this error. Any help would be highly appreciated
Thanks in advance
I am very grateful to Matthias Zepper for the quick response and guidance. I am going to try the vcfR package to read the vcf file. Hopefully, it will work. Thank you so much.