Description Usage Arguments Details Value Author(s)
Fast re-ordering of paired-end reads using read names and mapping locations.
1 2 3 4 5 6 7 8 9 |
inFiles |
a character vector giving names of input files. These files are typically location-sorted BAM files. |
inFormat |
a character string specifying format of input files. Supported formats include |
outFiles |
a character string giving names of output files. Re-ordered reads are saved to BAM-format files. |
addDummy |
logical indicating if a dummy read will be added to each singleton read which has a missing pair in the input. |
fullData |
logical indicating if sequences and base-calling quality scores of reads will be included in the output. |
compress |
logical indicating if compression should be turned on when generating BAM output. |
nthreads |
a numeric value giving number of CPU threads. 8 by default. |
This function takes as input paired-end BAM or SAM files, re-orders reads to make reads from the same pair be adjacent to each other and outputs the re-ordered reads into new BAM files.
The function makes use of both read names and mapping information of reads (eg. mapping coordinates) to identify reads belonging to the same pair. This makes sure that all paired-end reads are correctly re-ordered, especially those multi-mapping read pairs that include more than one reported alignment in the input.
The BAM files produced by this function are compatible with featureCounts
, meaning that no further re-ordering needs to be performed by featureCounts
.
No value is produced but BAM files with re-ordered reads are written to the current working directory.
Wei Shi and Yang Liao
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.