Skip to content

Commit

Permalink
Filter if the record does not match a track index
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Jul 13, 2018
1 parent 584e1bf commit 2241dd5
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/JBrowse/Store/Names/Hash.js
Expand Up @@ -50,13 +50,15 @@ return declare( HashStore,
if( typeof nameRecord == 'object' ) {
item.name = nameRecord[0];
var trackConfig = this._findTrackConfig( ((this.meta||{}).track_names||{})[ nameRecord[1] ] );
item.location = new Location({
ref: nameRecord[3],
start: parseInt( nameRecord[4] ),
end: parseInt( nameRecord[5] ),
tracks: [ trackConfig ],
objectName: nameRecord[0]
});
if(trackConfig) {
item.location = new Location({
ref: nameRecord[3],
start: parseInt( nameRecord[4] ),
end: parseInt( nameRecord[5] ),
tracks: [ trackConfig ],
objectName: nameRecord[0]
});
}
} else {
item.name = nameRecord;
}
Expand Down

0 comments on commit 2241dd5

Please sign in to comment.