08ac416593f765c6c91fef3dfe7538acdb588041,cnvlib/commands.py,,do_heatmap,#Any#Any#Any#,1141

Before Change


                chrom_sizes[chrom] = max(max_posn, chrom_sizes.get(chrom, 0))
            else:
                chrom_sizes[chrom] = chrom_sizes.get(chrom, 0)
    chrom_sizes = collections.OrderedDict(sorted(iteritems(chrom_sizes),
                                                 key=core.sorter_chrom_at(0)))

    // Closes over axis
    def plot_row(i, row):
        Draw the given coordinates and colors as a horizontal series.

After Change


        if r_chrom:
            subcna = cnarr.in_range(r_chrom, r_start, r_end, mode="trim")
            sample_data[i][r_chrom] = cna2df(subcna)
            chrom_sizes[r_chrom] = max(subcna.end.iat[-1] if subcna else 0,
                                       chrom_sizes.get(r_chrom, 0))
        else:
            for chrom, subcna in cnarr.by_chromosome():
                sample_data[i][chrom] = cna2df(subcna)
                chrom_sizes[chrom] = max(subcna.end.iat[-1] if subcna else 0,
                                         chrom_sizes.get(r_chrom, 0))

    // Closes over axis
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: etal/cnvkit
Commit Name: 08ac416593f765c6c91fef3dfe7538acdb588041
Time: 2016-02-10
Author: eric.talevich@gmail.com
File Name: cnvlib/commands.py
Class Name:
Method Name: do_heatmap


Project Name: etal/cnvkit
Commit Name: 08ac416593f765c6c91fef3dfe7538acdb588041
Time: 2016-02-10
Author: eric.talevich@gmail.com
File Name: cnvlib/commands.py
Class Name:
Method Name: do_heatmap


Project Name: tensorflow/magenta
Commit Name: 63dd31a11dc8437a53511ad33dbf3cc686aebe6e
Time: 2016-10-18
Author: adarob@google.com
File Name: magenta/models/melody_rnn/melody_rnn_generate.py
Class Name:
Method Name: run_with_flags


Project Name: tensorflow/magenta
Commit Name: 63dd31a11dc8437a53511ad33dbf3cc686aebe6e
Time: 2016-10-18
Author: adarob@google.com
File Name: magenta/models/melody_rnn/melody_rnn_sequence_generator.py
Class Name: MelodyRnnSequenceGenerator
Method Name: _generate