Skip to content

Commit

Permalink
Add better catch for XS and TS tag detection from CRAM (#2738)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Feb 11, 2022
1 parent 40eb4d7 commit 6977311
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import SerializableFilterChain from '@jbrowse/core/pluggableElementTypes/rendere
import { ObservableCreate } from '@jbrowse/core/util/rxjs'
import { reduce, filter, toArray } from 'rxjs/operators'
import { Observable } from 'rxjs'
import { getTagAlt } from '../util'
import { getTag, getTagAlt } from '../util'
import {
parseCigar,
getNextRefPos,
Expand Down Expand Up @@ -358,11 +358,7 @@ export default class SNPCoverageAdapter extends BaseFeatureDataAdapter {
start,
end,
strand,
xs:
feature.get('xs') ||
feature.get('ts') ||
feature.get('tags').XS ||
feature.get('tags').TS,
xs: getTag(feature, 'XS') || getTag(feature, 'TS'),
score: 1,
}
} else {
Expand Down

0 comments on commit 6977311

Please sign in to comment.