4b1f799c8403626ff56c7bf23fb1fbdb79dcb015,scanpy/plotting/_tools/__init__.py,,_rank_genes_groups_plot,#Any#Any#Any#Any#Any#Any#Any#Any#,258

Before Change



    // make a list of tuples containing the index for the start gene and the
    // end gene that should be labelled
    group_positions = [(x, x + n_genes - 1) for x in range(0, n_genes * len(group_names), n_genes)]

    // sum(list, []) is used to flatten the gene list
    gene_names = sum([list(adata.uns[key]["names"][x][:n_genes]) for x in group_names], [])

After Change


        if len(genes_list) == 0:
            logg.warn("No genes found for group {}".format(group))
            continue
        gene_names.extend(genes_list)
        end = start + len(genes_list)
        group_positions.append((start, end -1))
        group_names_valid.append(group)
        start = end
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: theislab/scanpy
Commit Name: 4b1f799c8403626ff56c7bf23fb1fbdb79dcb015
Time: 2019-01-14
Author: fidel.ramirez@gmail.com
File Name: scanpy/plotting/_tools/__init__.py
Class Name:
Method Name: _rank_genes_groups_plot


Project Name: home-assistant/home-assistant
Commit Name: 9f33b8f541cd2de14abfb7021c3f19acaf1a81c4
Time: 2015-10-08
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/device_tracker/ddwrt.py
Class Name: DdWrtDeviceScanner
Method Name: _update_info


Project Name: chainer/chainercv
Commit Name: 6d3cca9b23ec731a64cf979b71e8e5de730669b3
Time: 2018-11-18
Author: yuyuniitani@gmail.com
File Name: examples/classification/train_imagenet_multi.py
Class Name:
Method Name: main


Project Name: arviz-devs/arviz
Commit Name: d6596fc43ffdc27cd4f547fcddc175f48a33e341
Time: 2018-03-15
Author: aloctavodia@gmail.com
File Name: mcmcplotlib/plots/densityplot.py
Class Name:
Method Name: densityplot