First genomic coordinate that Nanopore read aligns to
2
0
Entering edit mode
7 months ago
K2020 • 0

I aligned Nanopore reads to a genome of interest and outputted a sorted BAM file. I want to determine the genomic coordinate that corresponds to the first base of each aligned read aka where in the genome the start of each read aligns. Any suggestions?

BAM • 331 views
ADD COMMENT
1
Entering edit mode
7 months ago
Dave Carlson ★ 1.7k

From the SAM file specification (section 1.4):

  1. POS: 1-based leftmost mapping POSition of the first CIGAR operation that “consumes” a reference base (see table below). The first base in a reference sequence has coordinate 1. POS is set as 0 for an unmapped read without coordinate. If POS is 0, no assumptions can be made about RNAME and CIGAR.

In other words, the first position of the alignment should be the fourth field in the SAM/BAM file.

ADD COMMENT

Login before adding your answer.

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