Skip to content

Commit

Permalink
Add more inference and consistent types
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Oct 26, 2018
1 parent 57cf8a3 commit cc2dd33
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/JBrowse/View/FeatureGlyph/Gene.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ _defaultConfig: function() {
this.inherited(arguments),
{
transcriptType: 'mRNA',
noncodingType: ['ncRNA','transcript', 'lnc_RNA', 'lncRNA'],
noncodingType: ['ncRNA','transcript', 'lnc_RNA', 'lncRNA', 'miRNA'],
style: {
transcriptLabelFont: 'normal 10px Univers,Helvetica,Arial,sans-serif',
transcriptLabelColor: 'black',
Expand Down
4 changes: 2 additions & 2 deletions src/JBrowse/View/FeatureGlyph/UnprocessedTranscript.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
define([
'dojo/_base/declare',
'dojo/_base/Color',
'dojo/_base/lang',
'JBrowse/View/FeatureGlyph/Segments'
],
function(
declare,
Color,
lang,
Segments
) {

Expand Down
5 changes: 4 additions & 1 deletion src/JBrowse/View/Track/CanvasFeatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,10 @@ return declare(
let guess = {
'gene': 'Gene',
'mRNA': 'ProcessedTranscript',
'transcript': 'ProcessedTranscript'
'ncRNA': 'UnprocessedTranscript',
'lncRNA': 'UnprocessedTranscript',
'lnc_RNA': 'UnprocessedTranscript',
'miRNA': 'UnprocessedTranscript'
}[feature.get('type')]

// otherwise, make it Segments if it has children,
Expand Down

0 comments on commit cc2dd33

Please sign in to comment.