repair(inFiles,inFormat="BAM",outFiles=paste(inFiles,"repair",sep="."),
addDummy=TRUE,fullData=TRUE,compress=FALSE,nthreads=8)BAM and SAM.TRUE by default.TRUE by default.FALSE by default.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 comptible with featureCounts, meaning that no read re-ordering will be performed when providing these files to featureCounts.