| bam.read | R Documentation |
Loads entire bam or slice into data.table or dumps to csv via samtools call (instead of Rsamtools like read.bam)
bam.read(
bam,
out.file = NULL,
region = NULL,
fields = c("seq"),
tags = c("MD", "BX"),
nlines = NULL,
estimate.lines = TRUE,
skip = NULL,
chunksize = 1e+05,
mc.cores = 1,
min.mapq = 0,
samtools.flag = "",
verbose = TRUE
)
bam |
bam file |
out.file |
file to dump csv to, if null returns data.table |
tags |
which tags to extract from bam file |
nlines |
number of lines in bam file if known, otherwise will be estimated |
estimate.lines |
flag whether to count lines or just estimate using bam.size if nlines is not provided (default = TRUE) |
skip |
how many lines to skip |
mc.cores |
how many threads to use for parsing |
min.mapq |
integer min mapping quality |
samtools.flag |
additoinal samtools flag to use |
verbose |
flag |
Marcin Imielinski
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.