registry-utils: Functions for creating and searching a registry of file...

Description Usage Arguments Details Value Examples

Description

Functions for creating and searching a registry of file types based on file extension.

Usage

1
2
3

Arguments

type

The List class the file is associated with such as BamFileList, BigWigFileList, FaFileList.

package

The package where the List class (type) is defined.

regex

A regular expression that uniquely identifies the file extension.

fnames

A character vector of file names.

...

Additional arguments passed to the List-class constructor (e.g., yieldSize for BamFileList).

Details

Value

registerFileType: NULL

findTypeRegistry: The regular expression associated with the file.

makeFileType: A List-type object defined in the registry.

Examples

1
2
3
4
5
6
## At load time the registry is populated with file types
## known to GenomicFiles.
sapply(as.list(.fileTypeRegistry), "[", "type")

## Add a new class to the file register.
## Not run: registerFileType(NewClassList, NewPackage, "\.NewExtension$")

GenomicFiles documentation built on Nov. 8, 2020, 7:48 p.m.