Usage
## S3 method for class 'TwoBitFile,ANY,ANY':
import(con, format, text,
which = as(seqinfo(con), "GenomicRanges"), ...)
## S3 method for class 'TwoBitFile':
getSeq(x, which = as(seqinfo(con), "GenomicRanges"))
import.2bit(con, ...)## S3 method for class 'ANY,TwoBitFile,ANY':
export(object, con, format, ...)
## S3 method for class 'DNAStringSet,TwoBitFile,ANY':
export(object, con, format)
## S3 method for class 'DNAStringSet,character,ANY':
export(object, con, format, ...)
export.2bit(object, con, ...)
Arguments
con
A path, URL or TwoBitFile object. Connections are
not supported. For the functions ending in .2bit, the file
format is indicated by the function name. For the export
and import methods, the format must be indicated another
way. If con is a path, or URL, either the file
extension or the format argument needs to be twoBit
or 2bit.
object,x
The object to export, either a DNAStringSet or
something coercible to a DNAStringSet, like a character vector.
format
If not missing, should be twoBit or 2bit
(case insensitive).
which
A range data structure coercible to RangesList,
like a GRanges, or a TwoBitFile. Only the intervals in
the file overlapping the given ranges are returned. By default, the
value is the TwoBitFile itself. Its Seqinfo object is
extracted and coerced to a RangesList that represents the
entirety of the file.
...
Arguments to pass down to methods to other methods. For
import, the flow eventually reaches the TwoBitFile method on
import. For export, the TwoBitFile methods on
export are the sink.