| RTLFile-class {rtracklayer} | R Documentation |
A RTLFile object is the base class for classes representing
files accessible with rtracklayer. It wraps a resource (either a path,
URL or connection). We can represent a list of RTLFile objects
with a RTLFileList.
In the code snippets below, x represents a RTLFile
object.
path(x):
Gets the path, as a character vector, to the resource
represented by the RTLFile object, if possible.
resource(x):
Gets the low-level resource, either a character vector (a path or
URL) or a connection.
as.character(x):
Returns the path of the file as a character vector.
FileForFormat(path, format = file_ext(path)):
Determines the file type of path and returns
a high-level file object such as BamFile, BEDFile,
BigWigFile etc..
Michael Lawrence
Implementing classes include: BigWigFile,
TwoBitFile, BEDFile,
GFFFile, and WIGFile.