> MBRobject <- variants.from.file(file = tempVCF, search.genome = genome, format = "vcf")
Error in open.TabixFile(VcfFile(file)) : 'indexname' must be character(1)
If the VCF file is only 300 Kb on disk, should indexing really be necessary?
I thought I could avoid the error by indexing, but that fails, too.
VariantAnnotation::writeVcf(variants, filename = tempVCF, index = TRUE) # Creates BGzip files automatically if indexing.
MBRobject <- variants.from.file(file = paste(tempVCF, "bgz", sep = '.'), search.genome = genome, format = "vcf")
Error in getListElement(x, i, ...) :
GRanges objects don't support [[, as.list(), lapply(), or unlist() at the moment
The line of code in snps.from.file causing the error is:
If the VCF file is only 300 Kb on disk, should indexing really be necessary?
I thought I could avoid the error by indexing, but that fails, too.
The line of code in
snps.from.file
causing the error is:There can be multiple ALT alleles per record, so ALT can be a
DNAStringSet
and the logical comparison made in the function is wrong