YuLab-SMU / ChIPseeker

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

Most distances in the flank_gene_distances column are 0 #235

Open rejo27 opened 5 months ago

rejo27 commented 5 months ago

Dear Pr Guangchuang Yu I am using the ChIPseeker package to annotate the peaks of ATACseq. The command is

txdb <- makeTxDbFromGFF("/Users/ltan/Documents/my.gff",format="gff")
peaks <- "/Users/ltan/Downloads/ATAC.peak.bed"
peakAnno <- annotatePeak(peaks, TxDb = txdb,tssRegion = c(-2000, 0), addFlankGeneInfo=T,flankDistance = 5000)

But I found that although there are multiple genes within 5000 bp upstream and downstream of some peaks, most of the flank_gene_distances columns are 0. such as

image

I don't know why. Looking forward to your reply