Hello all,
Seem there is something wrong with my samples
samples <- read.csv("samplesheet_DiffBind.csv")
result <- dba.analyze(samples)
Error in peaks[, pCol]/max(peaks[, pCol]) : non-numeric argument to binary operator
I understand what this error means but don't know what is the cause. Would you suggest to me how to fix this? Thank you so much!
Thanks Rory for your reply! My peak files is .broadPeak, created from nf-core/ATAC. The PeakCallers column is broad. I have SampleID, condition, replicate, bamReads, and Peaks column but no column contains the score, I think.
I changed PeakCallers column to bed and don't have that error.
I have this red messages and error that need your advice:
[W::hts_idx_load3] The index file is older than the data file [E::bgzf_read] Read block operation failed with error 4 after 0 of 4 bytes
Count error: Error: Error processing one or more read files. Check warnings().
Unable to count overlapping reads. Warning messages: 1: In mclapply(arglist, fn, ..., mc.preschedule = TRUE, mc.allow.recursive = TRUE) : scheduled cores 4, 2 encountered errors in user code, all values of the jobs will be affected 2: error in evaluating the argument 'x' in selecting a method for function 'assay': wrong args for environment subassignment 3: error in evaluating the argument 'x' in selecting a method for function 'assay': wrong args for environment subassignment
If you have an index file (.bai) file that is older than its corresponding .bam file, it need to be re-indexed.
One way to deal with this is to delete the .bai file. So long as you have write access to the directory,
DiffBind
will automatically re-index the file and create a new .bai.So see which file is the problem, you can run
dba.count()
withbParallel=FALSE
.Thank you for your reply!
Error: DBA object missing!
So I try to use this:
But I got some errors:
Error in is(DBA, "character") : object 'DBA' not found
Error in is(DBA, "character") : object 'mask' not found
Error in is(DBA, "character") : object 'peakFormat' not found
Error: Error processing one or more read files. Check warnings().
In addition: Warning messages:
1: In mclapply(arglist, fn, ..., mc.preschedule = TRUE, mc.allow.recursive = TRUE) :
scheduled cores 1, 4 encountered errors in user code, all values of the jobs will be affected
2: error in evaluating the argument 'x' in selecting a method for function 'assay': wrong args for environment subassignment
3: error in evaluating the argument 'x' in selecting a method for function 'assay': wrong args for environment subassignment
Would you suggest how to fix the errors? Thank you so much!
Sorry, I didn't see that you were using
dba.analyze()
to do a full default analysis.You can call
to better see the errors.
Alternatively, you can break out the analysis into steps to you can narrow in on the step that is going wrong:
Thank you for your help!
This is what I got when run:
Would you suggest how to fix this error? I have only 2 replicates for the control and 2 replicates for the diseased group.
Looks like you should either delete the file
or reindex
.