Description Usage Arguments Value Author(s) See Also Examples
Reads a bedfile containing positions of sequenced read aligned to a reference genome
and creates a RangedData
object.
1 |
readsfile |
name of bedfile giving the positions of aligned reads |
#!!
filetype |
Input file type. If |
# !!
chrcol |
In which column in the reads bedfile there is the chromosome information
(chromosome information in the file should be in string format, e.g. "chrX").
Ignored if |
startcol |
In which column there are the starting positions of the reads.
Ignored if |
endcol |
In which column there are the end positions of the reads.
Ignored if |
idcol |
In which column there are read identifiers. For single-end data it is optionally.
For paired-end data it is required for some functionalities. The two reads of one pair need to have the same ID.
Ignored if |
zerobased |
if |
sep |
Column separator character, defaults to tabs. Ignored if |
skip |
Number of lines of the bedfile to skip before beginning to read data; defaults to 1.
Ignored if |
header |
A logical value indicating whether the file contains the names of the variables as its first line;
defaults to FALSE. Ignored if |
... |
Further arguments passed to |
A RangedData
table holding the read positions
Manuela Hummel m.hummel@dkfz.de
1 2 3 | exptPath <- system.file("extdata", package="TEQC")
readsfile <- file.path(exptPath, "ExampleSet_Reads.bed")
reads <- get.reads(readsfile, idcol=4, skip=0)
|
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: IRanges
Loading required package: S4Vectors
Loading required package: stats4
Attaching package: 'S4Vectors'
The following object is masked from 'package:base':
expand.grid
Loading required package: Rsamtools
Loading required package: GenomeInfoDb
Loading required package: GenomicRanges
Loading required package: Biostrings
Loading required package: XVector
Attaching package: 'Biostrings'
The following object is masked from 'package:base':
strsplit
Loading required package: hwriter
[1] "read 19546 sequenced reads"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.