CloneSet224


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
28230.986file_input_element_list[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12823
Bio/ExPASy/Enzyme.py
22725
Bio/ExPASy/Prosite.py
Clone Instance
1
Line Count
28
Source Line
23
Source File
Bio/ExPASy/Enzyme.py

def parse(handle): 
     """Parse ENZYME records.

    This function is for parsing ENZYME files containing multiple
    records.

    handle   - handle to the file.""" 

     while True: 
          record = __read(handle) 
          if not record: 
               break 
          yield record 
     

def read(handle): 
     """Read one ENZYME record.

    This function is for parsing ENZYME files containing
    exactly one record.

    handle   - handle to the file.""" 

     record = __read(handle) 
     # We should have reached the end of the record by now
     remainder = handle.read( ) 
     if remainder: 
          raise ValueError("More than one ENZYME record found") 
     return record 


Clone Instance
2
Line Count
27
Source Line
25
Source File
Bio/ExPASy/Prosite.py

def parse(handle): 
     """Parse Prosite records.

    This function is for parsing Prosite files containing multiple
    records.

    handle   - handle to the file.""" 
     while True: 
          record = __read(handle) 
          if not record: 
               break 
          yield record 
     

def read(handle): 
     """Read one Prosite record.

    This function is for parsing Prosite files containing
    exactly one record.

    handle   - handle to the file.""" 

     record = __read(handle) 
     # We should have reached the end of the record by now
     remainder = handle.read( ) 
     if remainder: 
          raise ValueError("More than one Prosite record found") 
     return record 


Clone AbstractionParameter Count: 3Parameter Bindings

def parse(handle):
   [[#variable2f2c9b60]]
  while True:
  
    record = __read(handle) 
    if not record:
    
      break 
    yield record 
  

def read(handle):
   [[#variable2fa3e620]]
  record = __read(handle) 
  # We should have reached the end of the record by now
  remainder = handle.read( ) 
  if remainder:
  
    raise ValueError( [[#variable2fa3e5e0]]) 
  return record 
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2f2c9b60]]
"""Parse ENZYME records.

    This function is for parsing ENZYME files containing multiple
    records.

    handle   - handle to the file.""" 
12[[#2f2c9b60]]
"""Parse Prosite records.

    This function is for parsing Prosite files containing multiple
    records.

    handle   - handle to the file.""" 
21[[#2fa3e620]]
"""Read one ENZYME record.

    This function is for parsing ENZYME files containing
    exactly one record.

    handle   - handle to the file.""" 
22[[#2fa3e620]]
"""Read one Prosite record.

    This function is for parsing Prosite files containing
    exactly one record.

    handle   - handle to the file.""" 
31[[#2fa3e5e0]]
"More than one ENZYME record found" 
32[[#2fa3e5e0]]
"More than one Prosite record found"