25f293aaf43c420572ca1cec94ac0ea6a16f70e7,anvio/taxoestimation.py,SCGsTaxomy,make_list_taxonomy,#SCGsTaxomy#Any#Any#Any#Any#,955
Before Change
print(best)
for name ,some in best:
print(name, some)
bestident = matrix [individue].max()
bestSCG=matrix_pident[individue].sum(axis=1)
print(best)
print(summist)
After Change
def make_list_taxonomy(self, matrix_pident, matrix, list_position_entry,list_position_ribosomal):
taxonomy = []
individue = matrix_pident.rank(method="min", ascending=False).sum(axis=1).idxmin()
bestSCG = pd .to_numeric(matrix_pident.loc[individue,:] ).idxmax()
bestident = matrix_pident.loc[individue, bestSCG]
taxonomy.append({"bestSCG" : bestSCG,"bestident" : bestident,"taxo" : OrderedDict(self.taxonomy_dict[individue])})
return(taxonomy)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: merenlab/anvio
Commit Name: 25f293aaf43c420572ca1cec94ac0ea6a16f70e7
Time: 2019-08-13
Author: quentin.clayssen@gmail.com
File Name: anvio/taxoestimation.py
Class Name: SCGsTaxomy
Method Name: make_list_taxonomy
Project Name: Featuretools/featuretools
Commit Name: b75bc921f47950004ebd217bb166846cf77bb05f
Time: 2018-05-24
Author: benjaminschreck93@gmail.com
File Name: featuretools/entityset/base_entityset.py
Class Name: BaseEntitySet
Method Name: add_relationship
Project Name: sao-eht/eat
Commit Name: 0663f431d59a7281adf9a69e5cf98cbcab026597
Time: 2018-03-04
Author: lindylam@gmail.com
File Name: eat/io/util.py
Class Name:
Method Name: fix