checkPairedEnd {strandCheckR} | R Documentation |
Check the first 100000 first reads of the bam file to see whether it is single-end or paired-end
checkPairedEnd(file, yieldSize = 1e+05)
file |
the input bam file. Your bamfile should be sorted and have an index file located at the same path as well. |
yieldSize |
the number of reads to be checked, 100000 by default. |
return TRUE if the input file is paired end, and FALSE if it is single end
file <- system.file('extdata','s1.sorted.bam',package = 'strandCheckR') checkPairedEnd(file)