Skip to content

Instantly share code, notes, and snippets.

@brigand
Forked from remimarenco/forEach reference
Last active August 29, 2015 14:22
Show Gist options
  • Save brigand/451921a2bdc47a51b3e6 to your computer and use it in GitHub Desktop.
Save brigand/451921a2bdc47a51b3e6 to your computer and use it in GitHub Desktop.
// TODO: Sort by order, using a collectionjs
var failedExons = geneExons
.filter(function(geneExon){
return geneExon.bins[0].pct > 0 || geneExon.bins[1].pct > 0;
})
.map(function(geneExon){
return {
exon: geneExon,
pct: geneExon.bins[0].pct + geneExon.bins[1].pct
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment