How to extract unique fastq seq. from BAM, irrespective of FLAG value ?
I need to extract fastq seq. from a BAM file for other experiments. But the fastq file should only contain unique fastq seq. [Here unique fastq means if there are multiple copies of a seq. in BAM file then in the fastq file I only want a single copy of that seq. ]