Parse mapped scaffolds in BWA alignment
1
0
Entering edit mode
9.0 years ago
second_exon ▴ 210

Hi all,

I'm learning bioinformatics from scratch, please bear with me, if I go wrong.

I sequenced (miseq) few of my BACs. I mapped these miseq reads on reference genome using BWA. My question is, how to parse out names of the scaffolds of my reference genome got mapped from alignment file?

Many Thanks

SAM NGS BWA BAM • 2.5k views
ADD COMMENT
2
Entering edit mode
9.0 years ago

Here is SAM file format specification. You need to use samtools to view the contents of sam/bam file and then manipulate.

If you want to see the scaffolds:

samtools view <input bam> | cut -f3 | less
ADD COMMENT
0
Entering edit mode

Thank you! It worked!!

ADD REPLY

Login before adding your answer.

Traffic: 2928 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