TabixFile Import/Export
These methods support the import and export of
Rsamtools:TabixFile
TabixFile objects. These are generally
useful when working with tabix-indexed files that have a non-standard
format (i.e., not BED nor GFF), as well as exporting an object with
arbitrary columns (like a GRanges) to an indexed, tab-separated
file. This relies on the tabix header, which indicates the columns in
the file that correspond to the chromosome, start and end. The BED and
GFF parsers handle tabix transparently.
## S4 method for signature 'TabixFile,ANY,ANY' import(con, format, text, which = if (is.na(genome)) NULL else as(seqinfoForGenome(genome), "GenomicRanges"), genome = NA, header = TRUE, ...) exportToTabix(object, con, ...)
con |
For |
object |
The object to export. It is coerced to a
|
format |
If any known format, like “bed” or “gff” (or one of their variants), then the appropriate parser is applied. If any other value, then the tabix header is consulted for the format. By default, this is taken from the file extension. |
text |
Ignored. |
which |
A range data structure coercible to |
genome |
The identifier of a genome, or |
header |
If |
... |
Extra arguments to pass to the underlying import routine,
which for non-standard formats is |
For import
, a GRanges
object.
For exportToTabix
, a TabixFile
object that is directly
passable to import
.
Michael Lawrence
scanTabix
and friends
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.