Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 4 | 0.950 | stmt_list[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 196 | Bio/NeuralNetwork/Gene/Motif.py |
2 | 14 | 202 | Bio/NeuralNetwork/Gene/Signature.py |
| ||||
min_count = min(seq_motifs.values( )) max_count = max(seq_motifs.values( )) # as long as we have some motifs present, normalize them # otherwise we'll just return 0 for everything if max_count>0: for motif in seq_motifs.keys( ): seq_motifs[motif] = (float(seq_motifs[motif]-min_count)/float(max_count)) # return the relative motif counts in the specified order motif_amounts = [ ] for motif in self._motifs: motif_amounts.append(seq_motifs[motif]) |
| ||||
min_count = min(sequence_sigs.values( )) max_count = max(sequence_sigs.values( )) # as long as we have some signatures present, normalize them # otherwise we'll just return 0 for everything if max_count>0: for sig in sequence_sigs.keys( ): sequence_sigs[sig] = (float(sequence_sigs[sig]-min_count)/float(max_count)) # return the relative signature info in the specified order sig_amounts = [ ] for sig in self._signatures: sig_amounts.append(sequence_sigs[sig]) |
| |||
min_count = min( [[#variable1742f0e0]].values( )) max_count = max( [[#variable1742f0e0]].values( )) # as long as we have some motifs present, normalize them # as long as we have some signatures present, normalize them # otherwise we'll just return 0 for everything if max_count>0: for [[#variable2e7b5040]]in [[#variable1742f0e0]].keys( ): [[#variable1742f0e0]][ [[#variable2e7b5040]]] = (float( [[#variable1742f0e0]][ [[#variable2e7b5040]]]-min_count)/float(max_count)) # return the relative motif counts in the specified order # return the relative signature info in the specified order [[#variable1928d800]]= [ ] for [[#variable2e7b5040]]in self. [[#variable2e7b5fa0]]: [[#variable1928d800]].append( [[#variable1742f0e0]][ [[#variable2e7b5040]]]) |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1742f0e0]] | seq_motifs |
1 | 2 | [[#1742f0e0]] | sequence_sigs |
2 | 1 | [[#2e7b5040]] | motif |
2 | 2 | [[#2e7b5040]] | sig |
3 | 1 | [[#1928d800]] | motif_amounts |
3 | 2 | [[#1928d800]] | sig_amounts |
4 | 1 | [[#2e7b5fa0]] | _motifs |
4 | 2 | [[#2e7b5fa0]] | _signatures |