YuLab-SMU / ChIPseeker

:dart: ChIP peak Annotation, Comparison and Visualization
https://onlinelibrary.wiley.com/share/author/GYJGUBYCTRMYJFN2JFZZ?target=10.1002/cpz1.585
224 stars 74 forks source link

used custom Annodb library for enrichPathway() function #114

Open El-Castor opened 4 years ago

El-Castor commented 4 years ago

Hi,

First thanks to build this usefull package. I'm wondering if I can used the function enrichPathway() with a custom annodb library. In fact when I used this code :

for (peakAnno in peakAnnoList){ pathway1 <- enrichPathway(as.data.frame(peakAnno)$geneId,organism="Cucumis melo") head(pathway1, 2) }

I have this issue : Failed with error: ''package' must be of length 1'

After check your code and goggle the issues I have understand that this is due to the organism argument that is not set on "human". But I don't used this model so how can I used my custom library ?

Thanks in advance