Entering edit mode
I have a strange error when I call ChIPQC.
'names' attribute [9] must be the same length as the vector [2]
Number in brackets vary depending on the number of samples.
RNFC81 MCF10 POL2 unT7 unTreated 1 macs
RNFC84 MCF10 POL2 unT7 unTreated 2 macs
RNFC82 MCF10 POL2 T1 Tamoxifen 1 macs
RNFC85 MCF10 POL2 T1 Tamoxifen 2 macs
RNFC83 MCF10 POL2 T7 Tamoxifen 1 macs
RNFC86 MCF10 POL2 T7 Tamoxifen 2 macs
Compiling annotation...
Adding controls...
Computing metrics for 9 samples...
list
Bam file has 194 contigs
Error in names(res) <- nms :
'names' attribute [9] must be the same length as the vector [2]
Calls: ChIPQC -> bplapply -> bplapply -> bplapply -> bplapply
In addition: Warning message:
stop worker failed:
attempt to select less than one element in OneIndex
This is coming from this call.
experiment = ChIPQC(samples,annotation="hg38",chromosomes=c("chr1","chr2","chr3","chr4","chr5","chr6","chr7","chr8","chr9","chr10","chr11","chr12","chr13","chr14","chr15","chr16","chr17","chr18","chr19","chr20","chr21","chr22","chrX","chrY"),blacklist="hg38.blacklist.bed.gz")
Any help would be appreciated.
Hello,
I have a couple thoughts about this, but more information would be helpful. First- could you show what
samples
looks like? I assume you're trying to passsamples
to theexperiment
argument toChIPQC
(and not thesamples
argument, in which case you'd want to refer to it specifically, and also provide theexperiment
argument in addition):Another thought is that I notice
ChIPQC
usesBiocParallel::bplapply
internally: I've had strange errors come from BiocParallel when simply not providing enough memory to R. I don't expect memory to be the issue, but I think it's always worth ruling out (if you are using a computing cluster and can easily just request more memory).Best,
-Nick
P.S. I'm currently learning to help others.