Entering edit mode
5.6 years ago
hamaor
▴
10
I followd the Diffbind pipeline for a ChipSeq data:
peaksets2 = dba(sampleSheet="SampleSheet.csv",config = data.frame(RunParallel=TRUE, AnalysisMethod=DBA_DESEQ2, bCorPlot=FALSE, bUsePval=TRUE, minQCth=10),minOverlap = 2)
peaksets2 <- dba.count(peaksets2)
peaksets2 <- dba.contrast(peaksets2, categories=DBA_FACTOR)
peaksets2 <- dba.analyze(peaksets2,bCorPlot=FALSE)
than I tried to annotate the peaks with Chipseeker:
txdb <- TxDb.Hsapiens.UCSC.hg19.knownGene
peakAnno_inAll = annotatePeak(peaksets2.DB, TxDb=txdb, annoDb = "org.Hs.eg.db", level = "gene")
but I keep get the same error:
> peakAnno_inAll = annotatePeak(peaksets2.DB, TxDb=txdb, annoDb = "org.Hs.eg.db", level = "gene")
>> preparing features information... 2019-02-25 14:26:15
>> identifying nearest features... 2019-02-25 14:26:15
>> calculating distance from peak to TSS... 2019-02-25 14:26:15
>> assigning genomic annotation... 2019-02-25 14:26:15
Error in `[<-.data.frame`(`*tmp*`, tssIndex, "Promoter", value = TRUE) :
replacement has 1 row, data has 0
In addition: Warning messages:
1: In .Seqinfo.mergexy(x, y) :
The 2 combined objects have no sequence levels in common. (Use
suppressWarnings() to suppress this warning.)
2: In .Seqinfo.mergexy(x, y) :
The 2 combined objects have no sequence levels in common. (Use
suppressWarnings() to suppress this warning.)
3: In .Seqinfo.mergexy(x, y) :
The 2 combined objects have no sequence levels in common. (Use
suppressWarnings() to suppress this warning.)
4: In .Seqinfo.mergexy(x, y) :
The 2 combined objects have no sequence levels in common. (Use
suppressWarnings() to suppress this warning.)
5: In .Seqinfo.mergexy(x, y) :
The 2 combined objects have no sequence levels in common. (Use
suppressWarnings() to suppress this warning.)
what do I do wrong?
I have not tried to annotate peaks with Chipseeker; I use Homer's annotatePeaks.pl to annotate peaks.
could you send me the link for the .pl script? thanks
http://homer.ucsd.edu/homer/download.html - You will have to download homer software which includes this annotation script http://homer.ucsd.edu/homer/ngs/annotation.html - here's a link with detailed explanation of how Homer performs annotation of peaks.
thanks. I download it and tried using it, please see my comment about it
I generated my peaks using MACS2 and a peak file is looks like that:
As it not correlated with the format supported by Homer, I modified it to look like that:
By Adding PeakID column as first column, and "strand" column at the 5th column.
I'm running the Homer command: annotatePeaks.pl Homer_test_file.txt hg18 > outputfile.txt
and the final results ending with NA's for every peak:
I would love to get insight about what have I done wrong. Thanks a lot, Maor
Your peakfile should have these five tab-delimited columns -
Please ensure your chromosomes have "chr" before the number.