| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 28 | 2 | 3 | 0.986 | file_input_element_list[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 28 | 23 | Bio/ExPASy/Enzyme.py |
| 2 | 27 | 25 | Bio/ExPASy/Prosite.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
|
| ||||
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
|
| |||
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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#2f2c9b60]] | """Parse ENZYME records.
This function is for parsing ENZYME files containing multiple
records.
handle - handle to the file.""" |
| 1 | 2 | [[#2f2c9b60]] | """Parse Prosite records.
This function is for parsing Prosite files containing multiple
records.
handle - handle to the file.""" |
| 2 | 1 | [[#2fa3e620]] | """Read one ENZYME record.
This function is for parsing ENZYME files containing
exactly one record.
handle - handle to the file.""" |
| 2 | 2 | [[#2fa3e620]] | """Read one Prosite record.
This function is for parsing Prosite files containing
exactly one record.
handle - handle to the file.""" |
| 3 | 1 | [[#2fa3e5e0]] | "More than one ENZYME record found" |
| 3 | 2 | [[#2fa3e5e0]] | "More than one Prosite record found" |