Skip to content

Commit

Permalink
cleaned up code
Browse files Browse the repository at this point in the history
  • Loading branch information
bhofmei committed Jun 23, 2017
1 parent 3e1f761 commit 68659a8
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions js/Store/SeqFeature/NucDensity.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,11 @@ function(
//console.log(residues.length);
for (var i = hw; i < residues.length - hw; i += thisB.windowDelta) {

//console.log(thisB.nuc);
var r = residues.slice(i - hw, i + hw);
var rn = r.length - thisB.nucLength;
var nc = 0;
var ng = 0;
for (var j = 0; j < rn; j++) {
/*if (r[j] === 'c' || r[j] === 'C') {
nc++;
} else if (r[j] === 'g' || r[j] === 'G') {
ng++;
}*/
var rs = r.slice(j, j+thisB.nucLength);
if(array.indexOf(thisB.nucAr, rs.toUpperCase()) !== -1)
nc++;
Expand All @@ -93,11 +87,6 @@ function(
thisB.stats.min = score;
if(score > thisB.stats.max)
thisB.stats.max = score;
/*if (thisB.gcMode === 'content') {
score = (ng + nc) / r.length;
} else if (thisB.gcMode === 'skew') {
score = (ng - nc) / (ng + nc);
}*/
var n = thisB.nuc;

var feat = new CoverageFeature({
Expand Down

0 comments on commit 68659a8

Please sign in to comment.