ffad2963484aa4d91645137e97edb8ecc99bf810,anvio/scgtaxonomyops.py,SCGTaxonomyEstimator,estimate_for_list_of_splits,#SCGTaxonomyEstimator#Any#Any#,617

Before Change



        consensus_hash = HASH(consensus_taxonomy)
        for scg_taxonomy_hit in scg_taxonomy_dict.values():
            if consensus_hash == scg_taxonomy_hit["tax_hash"]:
                scg_taxonomy_hit["supporting_consensus"] = True
                supporting_scgs += 1
            else:

After Change


        total_scgs = len(scg_taxonomy_dict)
        supporting_scgs = 0

        consensus_taxonomy_levels_occupied = [level for level in self.levels_of_taxonomy if consensus_taxonomy[level]]
        consensus_taxonomy_str = " / ".join([consensus_taxonomy[level] for level in consensus_taxonomy_levels_occupied])

        for scg_taxonomy_hit in scg_taxonomy_dict.values():
            scg_taxonomy_hit_str = " / ".join([str(scg_taxonomy_hit[level]) for level in consensus_taxonomy_levels_occupied])

            if scg_taxonomy_hit_str == consensus_taxonomy_str:
                scg_taxonomy_hit["supporting_consensus"] = True
                supporting_scgs += 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: merenlab/anvio
Commit Name: ffad2963484aa4d91645137e97edb8ecc99bf810
Time: 2020-02-07
Author: a.murat.eren@gmail.com
File Name: anvio/scgtaxonomyops.py
Class Name: SCGTaxonomyEstimator
Method Name: estimate_for_list_of_splits


Project Name: bokeh/bokeh
Commit Name: 1c0433bcd6928e55ee70e582fd538c3bc854d04e
Time: 2017-01-09
Author: bryanv@continuum.io
File Name: examples/models/population_server.py
Class Name:
Method Name: update_pyramid


Project Name: merenlab/anvio
Commit Name: ffad2963484aa4d91645137e97edb8ecc99bf810
Time: 2020-02-07
Author: a.murat.eren@gmail.com
File Name: anvio/scgtaxonomyops.py
Class Name: SCGTaxonomyEstimator
Method Name: estimate_for_list_of_splits


Project Name: HyperGAN/HyperGAN
Commit Name: a04a4494fd68484dcefb98513661e0ef22cb2fa7
Time: 2018-06-08
Author: martyn@255bits.com
File Name: hypergan/trainers/kbeam_trainer.py
Class Name: KBeamTrainer
Method Name: _step


Project Name: bokeh/bokeh
Commit Name: 1c0433bcd6928e55ee70e582fd538c3bc854d04e
Time: 2017-01-09
Author: bryanv@continuum.io
File Name: examples/embed/widget.py
Class Name:
Method Name: update_pyramid