# Error running GenomicVis vcf.venn(vcf.files, 'GRCh38', sample.names)

I am trying to draw venn diagrams with a GenomicVis package (R).

library(GenomicVis)


It is loaded with a warining:

Warning messages:

f2 <- system.file("extdata", "S038_10_wes_S43.vcf", package ="GenomicVis")
f1 <- system.file("extdata", "S038_1_wes_S25.vcf.gz",package = "GenomicVis")
vcf.files <- c(f1, f2) sample.names <-c('Sample 1','Sample 10')
v <- vcf.venn(vcf.files, 'GRCh38', sample.names)

Error in rowData(read.vcf(f, genome, ...)) :
could not find function "rowData


But then this Error comes up, no clue how to solve it.

• Hi @EkatSim this might be enough for a member to trouble-shoot, however this could be a result of your input format. You might need to supply more details. Personally, I'd like to peer into f1 and f2 objects to see what is there. Finally is vcf.files and sample.names on the same line (as is here) or different lines? – M__ Aug 5 '20 at 11:57
• @Michael vcf.files and sample.names are on the different lines, I also think that the problem is reading my vcf files as calling f1 or f2 results in [1] "", however when I open them with cat I can see vcf table as it is. The first line is ##fileformat=VCFv4.2. I tried using fullpath or running R from this folder and still nothing. – Ekat Sim Aug 5 '20 at 14:32
• Okay thanks lets see what others think – M__ Aug 5 '20 at 17:57