vcfR v1.9.0
Released on CRAN 2020-01-10
- Changed class(x) == "matrix" to inherited(x, "matrix")
- Changed license from
GPL
toGPL-3
(#144). extract.haps()
reports the correct number of variants processed when verbose.- The square brackets ([]) handle @gt slots with no samples.
vcfR2loci()
now has the optionreturn.alleles = FALSE
.vcfR2genind()
now has the optionretrun.alleles = FALSE
.- Error handling code moved into the C++ functions called by read.vcfR so that errors are thrown earlier when reading a VCF. read.vcfR no longer checks that a file is readable first, which solves issues sometimes seen with shared files. (Issue #109, reported and fixed by @NikNakk).
extract.haps()
did not include the parameterreturn.alleles = TRUE
in it's call toextract.gt()
in the haploid branch of the function. This parameter has now been added. This also affectsvcfR2DNAbin()
which calls this function.vcfR2genlight()
includes the parameter...
to pass parameters toadegenet::df2genind()
.is.indel()
returns logical vector to identify indels.- gt.to.popsum now handles genotypes that include some, but not all, missing alleles.