Created
May 29, 2015 14:03
-
-
Save remimarenco/08e00edc0af32a4c6404 to your computer and use it in GitHub Desktop.
forEach reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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