Skip to content

Commit

Permalink
Regularize plain M to chrm
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Jun 6, 2019
1 parent 9ed646a commit 8089a4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/JBrowse/Browser.js
Expand Up @@ -743,7 +743,7 @@ regularizeReferenceName: function( refname ) {
.replace(/^([a-z]*)0+/,'$1')
.replace(/^(\d+|x|y)$/, 'chr$1' )
.replace(/^(x?)(ix|iv|v?i{0,3})$/, 'chr$1$2' )
.replace(/^mt$/, 'chrm');
.replace(/^mt?$/, 'chrm');

return refname;
},
Expand Down
3 changes: 2 additions & 1 deletion tests/js_tests/spec/RegularizeRefSeqs.spec.js
Expand Up @@ -58,7 +58,8 @@ describe( 'centralized ref seq name regularization', function() {
[ 'XIV', 'chrxiv' ] ,
[ 'XV', 'chrxv' ] ,
[ 'XVI', 'chrxvi' ] ,
[ 'mt', 'chrm' ]
[ 'mt', 'chrm' ],
[ 'M', 'chrm' ]
];


Expand Down

0 comments on commit 8089a4f

Please sign in to comment.