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.
snp
genome
popgenome
r