validMetadata: Ensure that the metadata caches in MAlignmentsLists and...

Description Usage Arguments Details Value Examples

View source: R/validMetadata.R

Description

In order to avoid a lot of lengthy calculations, both MAlignmentsList and MVRangesList objects keep a cache of some relevant statistics and filenames in their metadata slot. If these caches get stale, it can cause problems.

Usage

1

Arguments

x

an MAlignmentsList or an MVRangesList

Details

This function performs some sanity checks on the caches so that the above problems are unlikely to occur, provided that checkMetadataCache() is called at sensible times. This function is NOT a replacement for validObject().

Value

TRUE or FALSE (if FALSE, attr(res)$mismatches shows why)

Examples

1
2
3
library(MTseekerData)
data(RONKSreads) 
if(validMetadata(RONKSreads)) message("RONKSreads has valid metadata")

MTseeker documentation built on Oct. 31, 2019, 3:20 a.m.