CloneSet102


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12250.953stmt_list[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111346
Bio/SeqUtils/__init__.py
21246
Scripts/xbbtools/xbb_translations.py
Clone Instance
1
Line Count
11
Source Line
346
Source File
Bio/SeqUtils/__init__.py

    if length>20:  
        short = "%s ... %s"%(seq[ :10],seq[ -10: ]) 
    else: 
         short = seq 
     #TODO? Remove the date as this would spoil any unit test...
    date = time.strftime("%y %b %d, %X",time.localtime(time.time( ))) 
    header = "GC_Frame: %s, "%date 
    for nt in ["a","t","g","c"]: 
         header+="%s:%d "%(nt,seq.count(nt.upper( ))) 

    header+="""
Sequence: %s, %d nt, %0.2f %%GC


"""         %(short.lower( ),length,GC(seq)) 


Clone Instance
2
Line Count
12
Source Line
46
Source File
Scripts/xbbtools/xbb_translations.py

        if length>20:  
            short = "%s ... %s"%(seq[ :10],seq[ -10: ]) 
        else: 
             short = seq 

        date = time.strftime("%y %b %d, %X",time.localtime(time.time( ))) 
        res = "%s: %s, "%(txt,date) 

        for nt in ["a","t","g","c"]: 
             res+="%s:%d "%(nt,seq.count(nt.upper( ))) 

        res+="""
Sequence: %s, %d nt, %0.2f %%GC
"""          %(short.lower( ),length,self.gc(seq)) 


Clone AbstractionParameter Count: 5Parameter Bindings

if length>20:
  short = "%s ... %s"%(seq[ :10],seq[ -10: ]) 
else:
  short = seq 
  #TODO? Remove the date as this would spoil any unit test...
date = time.strftime("%y %b %d, %X",time.localtime(time.time( ))) 
 [[#variable2f9fab40]]= [[#variable2f9fafe0]]% [[#variable2f9fafc0]]
for nt in ["a","t","g","c"]:
   [[#variable2f9fab40]]+="%s:%d "%(nt,seq.count(nt.upper( ))) 
 [[#variable2f9fab40]]+= [[#variable2f9fa520]]%(short.lower( ),length, [[#variable78a55860]](seq)) 
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2f9fab40]]
res 
12[[#2f9fab40]]
header 
21[[#2f9fafe0]]
"%s: %s, " 
22[[#2f9fafe0]]
"GC_Frame: %s, " 
31[[#2f9fafc0]]
(txt,date) 
32[[#2f9fafc0]]
date 
41[[#2f9fa520]]
"""
Sequence: %s, %d nt, %0.2f %%GC
""" 
42[[#2f9fa520]]
"""
Sequence: %s, %d nt, %0.2f %%GC


""" 
51[[#78a55860]]
self.gc 
52[[#78a55860]]
GC