Description Usage Arguments Details Value Author(s) See Also Examples
Combines the two reads of a read pair (in case of paired-end data) to a new 'range' starting at the first reads's start position and ending at the second read's end position.
1 | reads2pairs(reads, max.distance)
|
reads |
|
max.distance |
Integer value defining the maximum allowed distance between two reads of a pair
(from start position of first read to end position of second read). Reads exceeding this
distance will be returned in the separate table |
The function puts together the two reads of each pair and creates new ranges spanning both
reads and everything in between. Those ranges correspond to the extent of the actual DNA molecules
for which both ends were sequenced. The output of the function can be used by several other functions,
whenever calculations should be based on read pairs rather than on single reads, e.g.
fraction.reads.target
, readsPerTarget
, duplicates.barplot
If reads
only contains complete read pairs and for all pairs the respective reads
align to the same chromosome and their distances do not exceed max.distance
(if specified),
a RangedData
object is returned containing positions of the merged reads per pair, ranging from start
position of the first read to end position of the second read.
If reads
also contains single reads, or if reads within a pair are further apart than
max.distance
(if specified) or align to different chromosome, a list is returned with elements
singleReads |
|
readpairs |
|
Manuela Hummel m.hummel@dkfz.de
get.reads
, fraction.reads.target
,
readsPerTarget
, duplicates.barplot
, insert.size.hist
1 2 3 4 | exptPath <- system.file("extdata", package="TEQC")
readsfile <- file.path(exptPath, "ExampleSet_Reads.bed")
reads <- get.reads(readsfile, idcol=4, skip=0)
readpairs <- reads2pairs(reads)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.