Skip to content

Commit

Permalink
Fix wiggle and bedGraph export
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Jan 29, 2019
1 parent 2dd7ecd commit 925248a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/JBrowse/View/Export/Wiggle.js
Expand Up @@ -41,7 +41,7 @@ return declare( ExportBase,
region,
dojo.hitch( this, function(f) {
var span = f.get('end') - f.get('start');
var ref = f.get('seq_id');
var ref = f.get('seq_id')||this.refSeq.name;
if( !( curspan == span && ref == curref ) ) {
this._printStep( span, ref == curref ? null : ref );
curref = ref;
Expand All @@ -56,4 +56,4 @@ return declare( ExportBase,
}

});
});
});
4 changes: 2 additions & 2 deletions src/JBrowse/View/Export/bedGraph.js
Expand Up @@ -30,11 +30,11 @@ return declare( bedExport,

formatFeature: function( f ) {
return [
f.get('seq_id'),
f.get('seq_id')||this.refSeq.name,
f.get('start'),
f.get('end'),
f.get('score')
].join("\t")+"\n";
}
});
});
});

0 comments on commit 925248a

Please sign in to comment.