Check internal consistency of SummarizedExperiment object
Source:R/checkValidity.R
checkSEValidity.RdAll assays with read-level data must have the same number and order of
the reads, which must also agree with the order in se$QC if that
exists. All assays must have the same column names, which must also
agree with the column names of the object, and the sample column
in the colData.
Examples
library(GenomicRanges)
modbamfiles <- system.file("extdata", c("6mA_1_10reads.bam",
"6mA_2_10reads.bam"),
package = "SingleMoleculeGenomicsIO")
se <- readModBam(bamfiles = modbamfiles, regions = "chr1:6940000-6955000",
modbase = "a", verbose = FALSE,
variantPositions = GPos(seqnames = "chr1",
pos = c(6940000, 6940500)),
BPPARAM = BiocParallel::SerialParam())
checkSEValidity(se)