Skip to content

Commit

Permalink
Fix for regularizing names of X, Y, and MT chroms
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettjstevens committed Nov 7, 2018
1 parent e2f4fa7 commit eea6ac7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/JBrowse/Browser.js
Expand Up @@ -718,7 +718,8 @@ regularizeReferenceName: function( refname ) {
.replace(/^co?n?ti?g/,'ctg')
.replace(/^scaff?o?l?d?/,'scaffold')
.replace(/^([a-z]*)0+/,'$1')
.replace(/^(\d+)$/, 'chr$1' );
.replace(/^(\d+|x|y)$/, 'chr$1' )
.replace(/^mt$/, 'chrm');

return refname;
},
Expand Down

0 comments on commit eea6ac7

Please sign in to comment.