2be6f9614d7a11ea88283ce1b4ad363d10c133c2,anvio/taxoestimation.py,SCGsTaxomy,make_list_taxonomy,#SCGsTaxomy#Any#Any#Any#Any#,934
Before Change
def make_list_taxonomy(self, matrix_pident, matrix, list_position_entry,list_position_ribosomal):
taxonomy = []
miniscore = 10000
i = 0
while i < len(matrix):
summist = sum(matrix[i])
bestident = float(max(matrix_pident[i]))
bestSCG=list_position_ribosomal[matrix_pident[i].index(bestident)]
if summist == miniscore:
taxonomy.append({"bestSCG" : bestSCG,"bestident" : bestident,"taxo" : OrderedDict(self.taxonomy_dict[list_position_entry[i]])})
if summist < miniscore:
taxonomy=[]
taxonomy.append({"bestSCG" : bestSCG,"bestident" : bestident,"taxo" : OrderedDict(self.taxonomy_dict[list_position_entry[i]])})
miniscore = summist
i += 1
return(taxonomy)
def reduce_assignation_level(self,taxonomy):
After Change
for name ,some in best:
print(name, some)
bestident = matrix[individue].max()
bestSCG=matrix_pident [individue].sum(axis=1)
print(best)
print(summist)
print(bestident)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances Project Name: merenlab/anvio
Commit Name: 2be6f9614d7a11ea88283ce1b4ad363d10c133c2
Time: 2019-08-13
Author: quentin.clayssen@gmail.com
File Name: anvio/taxoestimation.py
Class Name: SCGsTaxomy
Method Name: make_list_taxonomy
Project Name: PyThaiNLP/pythainlp
Commit Name: 37bcfe44411ec02455aa2a3543252bd5321a7e39
Time: 2020-08-17
Author: arthit@gmail.com
File Name: pythainlp/tag/perceptron.py
Class Name:
Method Name: _postag_clean
Project Name: merenlab/anvio
Commit Name: 2be6f9614d7a11ea88283ce1b4ad363d10c133c2
Time: 2019-08-13
Author: quentin.clayssen@gmail.com
File Name: anvio/taxoestimation.py
Class Name: SCGsTaxomy
Method Name: make_list_taxonomy
Project Name: danforthcenter/plantcv
Commit Name: 9dbe3f07cbf9a3d211bad1f7fc48fb7fab4cefcc
Time: 2019-08-22
Author: haleyschuhl@gmail.com
File Name: plantcv/plantcv/morphology/segment_insertion_angle.py
Class Name:
Method Name: segment_insertion_angle