A quick question: is there any way to extract uniquely aligned single-end or paired-end reads using Rsamtools? I read carefully about the documentation and did find a clear clue. IsSecondaryAlignment=T tag does not exclude a read which had aligned to multiple locations we designated as primary at other locations, correct? if so, then this won't serve for screening purpose.
Thanks for help