Skip to content

Instantly share code, notes, and snippets.

@remimarenco
Created May 29, 2015 14:03
Show Gist options
  • Save remimarenco/08e00edc0af32a4c6404 to your computer and use it in GitHub Desktop.
Save remimarenco/08e00edc0af32a4c6404 to your computer and use it in GitHub Desktop.
forEach reference
var failedExons = [];
var failedGeneAndPct = {};
// TODO: Sort by order, using a collectionjs
geneExons.forEach(function(geneExon){
if(geneExon.bins[0].pct > 0 || geneExon.bins[1].pct > 0){
failedGeneAndPct.exon = geneExon;
failedGeneAndPct.pct = geneExon.bins[0].pct + geneExon.bins[1].pct;
failedExons.push(failedGeneAndPct);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment