c241a91f4e99a8a8e158ef89fe609d6932688911,scanpy/preprocessing/_deprecated/highly_variable_genes.py,,filter_genes_dispersion,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,11

Before Change


        one_gene_per_bin = disp_std_bin.isnull()
        gen_indices = np.where(one_gene_per_bin[df["mean_bin"].values])[0].tolist()
        if len(gen_indices) > 0:
            logg.msg(
                "Gene indices {} fell into a single bin: their "
                "normalized dispersion was set to 1.\n    "
                "Decreasing `n_bins` will likely avoid this effect."
                .format(gen_indices), v=4)
        // Circumvent pandas 0.23 bug. Both sides of the assignment have dtype==float32,
        // but there’s still a dtype error without “.value”.
        disp_std_bin[one_gene_per_bin] = disp_mean_bin[one_gene_per_bin.values].values
        disp_mean_bin[one_gene_per_bin] = 0

After Change


        one_gene_per_bin = disp_std_bin.isnull()
        gen_indices = np.where(one_gene_per_bin[df["mean_bin"].values])[0].tolist()
        if len(gen_indices) > 0:
            logg.debug(
                f"Gene indices {gen_indices} fell into a single bin: their "
                "normalized dispersion was set to 1.\n    "
                "Decreasing `n_bins` will likely avoid this effect."
            )
        // Circumvent pandas 0.23 bug. Both sides of the assignment have dtype==float32,
        // but there’s still a dtype error without “.value”.
        disp_std_bin[one_gene_per_bin] = disp_mean_bin[one_gene_per_bin.values].values
        disp_mean_bin[one_gene_per_bin] = 0
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: theislab/scanpy
Commit Name: c241a91f4e99a8a8e158ef89fe609d6932688911
Time: 2019-06-03
Author: flying-sheep@web.de
File Name: scanpy/preprocessing/_deprecated/highly_variable_genes.py
Class Name:
Method Name: filter_genes_dispersion


Project Name: theislab/scanpy
Commit Name: c241a91f4e99a8a8e158ef89fe609d6932688911
Time: 2019-06-03
Author: flying-sheep@web.de
File Name: scanpy/preprocessing/_normalization.py
Class Name:
Method Name: normalize_total


Project Name: theislab/scanpy
Commit Name: c241a91f4e99a8a8e158ef89fe609d6932688911
Time: 2019-06-03
Author: flying-sheep@web.de
File Name: scanpy/preprocessing/_highly_variable_genes.py
Class Name:
Method Name: _highly_variable_genes_single_batch