annotate ezBAMQC/src/htslib/test/fieldarith.sam @ 4:50a9d8992e65

Uploaded
author cshl-bsr
date Tue, 29 Mar 2016 15:33:36 -0400
parents dfa3745e5fd8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
1 @SQ SN:one LN:1000
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
2 @SQ SN:two LN:500
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
3 @CO For each SAM record that has each listed aux field, performs these tests:
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
4 @CO XQ is the expected result for bam_cigar2qlen()
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
5 @CO XR is the expected result for bam_cigar2rlen()
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
6 @CO XE is the expected result for bam_endpos()
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
7 @CO (Note that these are all zero-based, while POS is one-based in SAM)
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
8 r1 0 one 50 20 8M * 0 0 ATGCATGC qqqqqqqq XQ:i:8 XR:i:8 XE:i:57
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
9 r2 0 one 100 20 50M * 0 0 ATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCATGCAT qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq XQ:i:50 XR:i:50 XE:i:149
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
10 unmapped 5 two 200 0 * two 200 0 ATGCATGC qqqqqqqq XQ:i:0 XR:i:0 XE:i:200
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
11 hascigar 5 two 200 0 6M2S two 200 0 ATGCATGC qqqqqqqq XQ:i:8 XR:i:6 XE:i:200
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
12 s1 0 one 300 20 2M * 0 0 AT qq XQ:i:2 XR:i:2 XE:i:301
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
13 su1 4 * 0 0 * * 0 0 AT qq XQ:i:0 XR:i:0 XE:i:0
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
14 su2 5 two 400 0 * two 400 0 AT qq XQ:i:0 XR:i:0 XE:i:400
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
15 su3 4 one 500 0 2M * 0 0 AT qq XQ:i:2 XR:i:2 XE:i:500