IsCOV: Validates the given file as a valid COV file

View source: R/utils.R

IsCOVR Documentation

Validates the given file as a valid COV file

Description

This function takes the path of a possible COV file and checks whether its format complies with that of the COV format defined by this package.

Usage

IsCOV(coverage_files)

Arguments

coverage_files

A vector containing the file names of files to be checked

Details

COV files are BGZF-compressed files. The first 4 bytes of the file must always be 'COV\1', distinguishing it from BAM or other files in BGZF format. This function checks whether the given file complies with this.

Value

TRUE if all files are valid COV files. FALSE otherwise

See Also

IRFinder CollateData

Examples

se <- NxtIRF_example_NxtSE()

cov_files <- covfile(se)

IsCOV(cov_files) # returns true if these are true COV files

alexchwong/NxtIRFcore documentation built on Oct. 31, 2022, 9:14 a.m.