Description Usage Arguments Value Author(s) References Examples
View source: R/methods-TabixFile.R
Index (with indexTabix
) files that have been sorted into
ascending sequence, start and end position ordering.
1 2 3 4 |
file |
A characater(1) path to a sorted, bgzip-compressed file. |
format |
The format of the data in the compressed file. A characater(1) matching one of the types named in the function signature. |
seq |
If |
start |
If |
end |
If |
skip |
The number of lines to be skipped at the beginning of the file. |
comment |
A single character which, when present as the first character in a line, indicates that the line is to be omitted. from indexing. |
zeroBased |
A logical(1) indicating whether coordinats in the file are zero-based. |
... |
Additional arguments. |
The return value of indexTabix
is an updated instance of
file
reflecting the newly-created index file.
Martin Morgan <mtmorgan@fhcrc.org>.
http://samtools.sourceforge.net/tabix.shtml
1 2 3 4 5 6 7 | from <- system.file("extdata", "ex1.sam", package="Rsamtools",
mustWork=TRUE)
to <- tempfile()
zipped <- bgzip(from, to)
idx <- indexTabix(zipped, "sam")
tab <- TabixFile(zipped, idx)
|
Loading required package: GenomeInfoDb
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: 'BiocGenerics'
The following objects are masked from 'package:parallel':
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from 'package:stats':
IQR, mad, sd, var, xtabs
The following objects are masked from 'package:base':
Filter, Find, Map, Position, Reduce, anyDuplicated, append,
as.data.frame, cbind, colMeans, colSums, colnames, do.call,
duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
lapply, lengths, mapply, match, mget, order, paste, pmax, pmax.int,
pmin, pmin.int, rank, rbind, rowMeans, rowSums, rownames, sapply,
setdiff, sort, table, tapply, union, unique, unsplit, which,
which.max, which.min
Loading required package: S4Vectors
Loading required package: stats4
Attaching package: 'S4Vectors'
The following object is masked from 'package:base':
expand.grid
Loading required package: IRanges
Loading required package: GenomicRanges
Loading required package: Biostrings
Loading required package: XVector
Attaching package: 'Biostrings'
The following object is masked from 'package:base':
strsplit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.