6 if line
.startswith('@'):
8 if line
.startswith('@SQ'):
9 #@SQ SN:chr1 LN:195471971
10 _
, sn
, ln
= line
.rstrip().split()
11 sn
, ln
= sn
.split(":")[1], int(ln
.split(":")[1])
14 toks
= line
.rstrip().split("\t")
17 if chrom
!= "*" and not flag
& 0x4:
19 pos
= max(1, seq_lens
[chrom
] - pos
- len(toks
[9]))