I ran annotation of my peak file which went well but enrichment is giving me this error.
pathway1 <- enrichPathway(as.data.frame(peakAnno)$geneId)
*tmp*, value = c(NA_character_, NA_character_, :
duplicate 'row.names' are not allowed
In addition: There were 50 or more warnings (use warnings() to see the first 50)
the I tried seq2gene and it gives this error
gene <- seq2gene(peaks, tssRegion = c(-1000, 1000), flankDistance = 3000, TxDb=txdb) Error in .Method(..., deparse.level = deparse.level) : number of columns for arg 2 do not match those of first arg