Thank you for answering. Are you sure because i checked my peak files and they all have about 20,000 peaks. I appreciate your help, do you think it could be my sample file and it is not formatted correctly.
I am using ChIPQC to get quality metrics of my reads. I have .bam files and .narrowpeaks files. I created a sample csv file called sample1.csv. The sample.csv sheet can be found at this link.
My code is the following:
> samples <- read.csv('sample1.csv')
> View(samples)
> chipObj <- ChIPQC(samples, annotation="hg38")
However, I keep getting this error:
Error in if file.info(peaks)$size > 0) { :
missing value where TRUE/FALSE needed
Hope someone can help. I really would appreciate it.
3 answers
I figured it out. The peak files I had generated needed to have the prefix "chr" before the chromosome number. So before it would be just 1, 2,3,......,X,Y. After the change it is chr 1, chr 2, chr 3............ chr X, chr Y. Thanks for all your help guys. If anyone is having a similar issue please message me, would love to help out.
One of your peaks files contains no peaks, potentially due to poor ChIP enrichment or other issues with peakcalling.
It would help to see your sample sheet sample1.csv.
The most common source of this error is the format of the peaks files not matching what is specified in the PeakCaller column. What is the type of the peak files, and what is specified in the sample sheet?
Thank you for answering, my sample.csv link is below, you should be able to access it: I appreciate your help in this very much.
Log in to answer this question.
Please use the formatting bar (especially the
codeoption) to present your post better. You can use backticks for inline code (`text` becomestext), or select a chunk of text and use the highlighted button to format it as a code block. I've done it for you this time.