Dear all,
I have a question regarding the PopGenome package for R which I have just begun to get comfortable with.
I have been loading my VCF files individually by chromosome and calculating stats on them. I've done it for every other chromosome except chromosome 8. All files have been processed the same exact way. However, when I use the neutrality_stats function I get the following error only with chromosome 8:
|Error in if (outgroup[1] == FALSE) { : argument is of length zero
This is weird as it only happens with this one chromosome. Below are the commands I use:
GENOME.class_gla<-readVCF("chr8.vcf.gz",1000,"8",1,146364022,gffpath = "chr8.gff3")
genes_gla<-splitting.data(GENOME.class_gla,subsites="gene")
genes_gla<-neutrality.stats(genes_gla,FAST=TRUE)
How can I solve this? If anyone has any suggestions, I would be so grateful.
Hi Bastian,
Thanks for your suggestion. It did not solve the problem however. I really don't know the cause, but I will start by simply recreating the VCF which was a subset of the original larger file.
edit Recreating the VCF did nothing to help also. Still getting the same error.
Thats weird, indeed.
FAST=FALSE
in theneutrality.stats()
module does not fix the problem ?Ok, probably the following is a fast and dirty fix:
All the best,
Bastian
Hi Bastian
I'm trying to read a HapMap file with readData, but I get an error,
These are the first ten lines and 16 columns of the hapmap file
Can you help me? lipc20052006@163.com