1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/796d08ce13d0/ changeset: 796d08ce13d0 user: jgoecks date: 2012-03-08 18:29:13 summary: Trackster: bug fixes for read filtering. affected #: 2 files diff -r 91a437977be1b1ae6eabd510e553f86f86f74ac0 -r 796d08ce13d092321a1c629fcb66ea225676da99 lib/galaxy/visualization/tracks/data_providers.py --- a/lib/galaxy/visualization/tracks/data_providers.py +++ b/lib/galaxy/visualization/tracks/data_providers.py @@ -718,7 +718,7 @@ else: results.append( [ "%i_%s" % ( read.pos, qname ), read.pos, read.pos + read_len, qname, - read.cigar, strand, read.seq, [read.mapq, 125] ] ) + read.cigar, strand, read.seq, read.mapq ] ) # Take care of reads whose mates are out of range. # TODO: count paired reads when adhering to max_vals? diff -r 91a437977be1b1ae6eabd510e553f86f86f74ac0 -r 796d08ce13d092321a1c629fcb66ea225676da99 static/scripts/trackster.js --- a/static/scripts/trackster.js +++ b/static/scripts/trackster.js @@ -2480,14 +2480,27 @@ return updated; } + // // Update filter's min, max based on element values. - if (element[this.index] < this.min) { - this.min = Math.floor(element[this.index]); - updated = true; - } - if (element[this.index] > this.max) { - this.max = Math.ceil(element[this.index]); - updated = true; + // + + // Make value(s) into an Array. + var values = element[this.index]; + if (!(values instanceof Array)) { + values = [values]; + } + + // Loop through values and update min, max. + for (var i = 0; i < values.length; i++) { + var value = values[i]; + if (value < this.min) { + this.min = Math.floor(value); + updated = true; + } + if (value > this.max) { + this.max = Math.ceil(value); + updated = true; + } } return updated; }, Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.