7da447b4b42c4b214fc464deb3a3166a9bace7b2,scanpy/plotting/__init__.py,,pca_ranking,#Any#Any#Any#,103

Before Change


    if isinstance(comps, str): comps = comps.split(",")
    keys = ["PC1", "PC2", "PC3"] if comps is None else ["PC{}".format(c) for c in comps]
    ranking(adata, "var", keys)
    writekey = sett.basekey + "_pca_ranking_components" + sett.plotsuffix
    if sett.savefigs: savefig(writekey)
    ranking(adata, "add", "pca_variance_ratio", labels="PC")
    writekey = sett.basekey + "_pca_ranking_variance" + sett.plotsuffix
    show = sett.autoshow if show is None else show
    if sett.savefigs: savefig(writekey)
    elif show: pl.show()


def diffmap(adata,
            color=None,
            names=None,
            comps=None,

After Change


    ranking(adata, "var", keys)
    if sett.savefigs: savefig("pca_ranking_components")
    ranking(adata, "add", "pca_variance_ratio", labels="PC")
    savefig_or_show("pca_ranking_variance")


def diffmap(adata,
            color=None,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 16

Instances


Project Name: theislab/scanpy
Commit Name: 7da447b4b42c4b214fc464deb3a3166a9bace7b2
Time: 2017-05-22
Author: f.alex.wolf@gmx.de
File Name: scanpy/plotting/__init__.py
Class Name:
Method Name: pca_ranking


Project Name: theislab/scanpy
Commit Name: 7da447b4b42c4b214fc464deb3a3166a9bace7b2
Time: 2017-05-22
Author: f.alex.wolf@gmx.de
File Name: scanpy/plotting/__init__.py
Class Name:
Method Name: pca_ranking


Project Name: theislab/scanpy
Commit Name: 7da447b4b42c4b214fc464deb3a3166a9bace7b2
Time: 2017-05-22
Author: f.alex.wolf@gmx.de
File Name: scanpy/plotting/__init__.py
Class Name:
Method Name: tsne


Project Name: theislab/scanpy
Commit Name: 7da447b4b42c4b214fc464deb3a3166a9bace7b2
Time: 2017-05-22
Author: f.alex.wolf@gmx.de
File Name: scanpy/plotting/__init__.py
Class Name:
Method Name: pca_scatter