Skip to content

Commit

Permalink
Unique-ify trackId and displayIds
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Nov 4, 2024
1 parent 08f52ed commit b0d6fb0
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/LaunchProteinView/components/AlphaFoldDBSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ const AlphaFoldDBSearch = observer(function ({
assemblyNames: [uniprotId],
displays: [
{
displayId: `${type}-LinearBasicDisplay`,
displayId: `${s}-LinearBasicDisplay`,
type: 'LinearBasicDisplay',
jexlFilters: [`get(feature,'type')=='${type}'`],
},
Expand All @@ -265,7 +265,7 @@ const AlphaFoldDBSearch = observer(function ({
})
session.addTrackConf({
type: 'FeatureTrack',
trackId: 'Antigen',
trackId: `${uniprotId}-Antigen`,
name: 'Antigen',
adapter: {
type: 'Gff3Adapter',
Expand All @@ -277,7 +277,7 @@ const AlphaFoldDBSearch = observer(function ({
})
session.addTrackConf({
type: 'FeatureTrack',
trackId: 'Variation',
trackId: `${uniprotId}-Variation`,
name: 'Variation',
adapter: {
type: 'UniProtVariationAdapter',
Expand All @@ -289,7 +289,7 @@ const AlphaFoldDBSearch = observer(function ({
})
session.addTrackConf({
type: 'QuantitativeTrack',
trackId: 'AlphaFold confidence',
trackId: `${uniprotId}-AlphaFold-confidence`,
name: 'AlphaFold confidence',
adapter: {
type: 'AlphaFoldConfidenceAdapter',
Expand All @@ -301,7 +301,7 @@ const AlphaFoldDBSearch = observer(function ({
})
session.addTrackConf({
type: 'MultiQuantitativeTrack',
trackId: 'AlphaMissense scores',
trackId: `${uniprotId}-AlphaMissense-scores`,
name: 'AlphaMissense scores',
assemblyNames: [uniprotId],
adapter: {
Expand All @@ -313,8 +313,7 @@ const AlphaFoldDBSearch = observer(function ({
displays: [
{
type: 'MultiLinearWiggleDisplay',
displayId:
'AlphaMissense scores-MultiLinearWiggleDisplay',
displayId: `${uniprotId}-AlphaMissense-scores-MultiLinearWiggleDisplay`,
defaultRendering: 'multirowdensity',
renderers: {
MultiDensityRenderer: {
Expand Down

0 comments on commit b0d6fb0

Please sign in to comment.