File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ impl BamRecordExtensions for bam::Record {
96
96
let mut pos = self . pos ( ) ;
97
97
for entry in self . cigar ( ) . iter ( ) {
98
98
match entry {
99
- Cigar :: Match ( len) => {
99
+ Cigar :: Match ( len) | Cigar :: Equal ( len ) | Cigar :: Diff ( len ) => {
100
100
result. push ( [ pos, pos + * len as i64 ] ) ;
101
101
pos += * len as i64 ;
102
102
}
@@ -113,7 +113,7 @@ impl BamRecordExtensions for bam::Record {
113
113
let mut result = Vec :: new ( ) ;
114
114
for entry in self . cigar ( ) . iter ( ) {
115
115
match entry {
116
- Cigar :: Match ( len) | Cigar :: Del ( len) | Cigar :: Equal ( len) | Cigar :: Diff ( len) => {
116
+ Cigar :: Match ( len) | Cigar :: Equal ( len) | Cigar :: Diff ( len) | Cigar :: Del ( len) => {
117
117
base_position += * len as i64
118
118
}
119
119
Cigar :: RefSkip ( len) => {
You can’t perform that action at this time.
0 commit comments