Hi,
I am trying to use the "ChIPQCreport" command in the ChIPQC package.
My design table is as follows:
SampleID Tissue Factor Condition Treatment Replicate bamReads Peaks
1 K9-10-1 Heart 10 A C 1 peakcalling_bams.dir/K9-10-1_filtered.bam conservative_peaks.dir/10_Heart.tsv
2 K9-10-2 Heart 10 A C 2 peakcalling_bams.dir/K9-10-2_filtered.bam conservative_peaks.dir/10_Heart.tsv
3 K9-10-3 Heart 10 A C 3 peakcalling_bams.dir/K9-10-3_filtered.bam conservative_peaks.dir/10_Heart.tsv
4 K9-13-1 Liver 13 B D 1 peakcalling_bams.dir/K9-13-1_filtered.bam conservative_peaks.dir/13_Heart.tsv
5 K9-13-2 Liver 13 B D 2 peakcalling_bams.dir/K9-13-2_filtered.bam conservative_peaks.dir/13_Heart.tsv
6 K9-13-3 Liver 13 B D 3 peakcalling_bams.dir/K9-13-3_filtered.bam conservative_peaks.dir/13_Heart.tsv
The following two commands run successfully:
samples = read.table('ChIPQC_design_conservative.tsv', sep="\t", header=1) experiment = ChIPQC(samples)
This command fails:
ChIPQCreport(experiment)
with the error message:
Saving 7 x 7 in image
Error: Faceting variables must have at least one value
The traceback is:
10: stop("Faceting variables must have at least one value", call. = FALSE)
9: layout_base(data, vars, drop = drop)
8: plyr::unrowname(layout_base(data, vars, drop = drop))
7: layout_wrap(data, facet$facets, facet$nrow, facet$ncol, facet$as.table,
facet$drop, facet$dir)
6: facet_train_layout.wrap(facet, c(list(plot_data), data))
5: facet_train_layout(facet, c(list(plot_data), data))
4: train_layout(panel, plot$facet, layer_data, plot$data)
3: ggplot_build(x)
2: print.ggplot(x)
1: function (x, ...)
UseMethod("print")(x)
If I run plotCC, plotRegi, plotPeakProfile or plotFribl in isolation I get the same error but the other individual plotting commands work. I have tried "facet=F" and various combinations of facetBy columns but I get the same error every time.
I have Bioconductor version 3.3 and my session info is as follows:
R version 3.3.0 (2016-05-03)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Scientific Linux release 6.8 (Carbon)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8
[6] LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats4 parallel stats graphics grDevices utils datasets methods base
other attached packages:
[1] reshape2_1.4.1 ChIPQC_1.8.3 DiffBind_2.0.1 SummarizedExperiment_1.2.3 Biobase_2.32.0
[6] GenomicRanges_1.24.2 GenomeInfoDb_1.8.3 IRanges_2.6.0 S4Vectors_0.10.0 BiocGenerics_0.18.0
[11] ggplot2_2.1.0
Thanks,
Katy
Thank you for confirming that the issue was simply that.
Best,
Marge