bwValid {CAGEfightR} | R Documentation

## Check if BigWig-files are valid.

### Description

Checks if a BigWigFile or BigWigFileList is composed of readable files with the proper .bw extension.

### Usage

    bwValid(object)

    ## S4 method for signature 'BigWigFile'
    bwValid(object)

    ## S4 method for signature 'BigWigFileList'
    bwValid(object)

### Arguments

`object` | BigWigFile or BigWigFileList

### Value

TRUE, if any tests fails an error is raised.

### See Also

Other BigWig functions: `bwCommonGenome()`, `bwGenomeCompatibility()`

### Examples

    # Use the BigWig-files included with the package:
    data('exampleDesign')
    bw_plus <- system.file('extdata', exampleDesign$BigWigPlus,
                           package = 'CAGEfightR')

    # Create a named BigWigFileList-object with names
    bw_plus <- BigWigFileList(bw_plus)
    names(bw_plus) <- exampleDesign$Name

    # Check a single BigWigFile:
    bwValid(bw_plus[[1]])

    # Check the entire BigWigFileList:
    bwValid(bw_plus)

[Package CAGEfightR version 1.7.5 Index]