Skip to content

Commit

Permalink
adding system_name to genome object for ensembl rest api
Browse files Browse the repository at this point in the history
  • Loading branch information
ajo2995 committed Jul 23, 2015
1 parent c4ae69e commit da219db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/genomes.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ function createGenomeObjects(rawData) {
return _(rawData).map(function(d) {
return new Genome({
taxon_id: d.taxon_id,
system_name: d.system_name,
assembledGenomeSize: d.length,
regions: d.regions
});
Expand All @@ -122,6 +123,7 @@ function Genome(params) {
this._regions = refactorMapRegions(params.regions);
this.taxon_id = params.taxon_id;
this.assembledGenomeSize = params.assembledGenomeSize;
this.system_name = params.system_name;

// the above does not include UNANCHORED region. Let's include that here:
this.fullGenomeSize = this.reduceRegions(function(total, region) { return total + region.size}, 0);
Expand Down

0 comments on commit da219db

Please sign in to comment.