Unmapped Pairs in Bam file
1
1
Entering edit mode
6.9 years ago
user191006 ▴ 10

Hi,

I want to work with unmapped reads in BAM file(generally listed at the end of the file). I can easily collect them with flags. My problem is that I need make indexing for unmapped reads, thank you!

bam Assembly alignment next-gen • 2.2k views
ADD COMMENT
0
Entering edit mode

What do you mean by "make indexing for unmapped reads"? You can index a BAM file with unmapped reads, that's not an issue.

ADD REPLY
0
Entering edit mode

I want to make an assembly with these unmapped reads for such as insertions etc.

ADD REPLY
1
Entering edit mode
6.9 years ago
samtools fastq -f 12 -n -1 read1.fastq -2 read2.fastq input.bam

I presume this needs to be name sorted (samtools sort -n) first.

ADD COMMENT
0
Entering edit mode

Can you describe it, thank you!

ADD REPLY
0
Entering edit mode

The samtools fastq command produces one or more fastq files from a BAM file. The -f 12 option specifies only entries with neither mate mapped.

ADD REPLY

Login before adding your answer.

Traffic: 2620 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6