CloneSet372


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
34250.963Python
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1281
Bio/GA/Crossover/Point.py
2341
Bio/GA/Crossover/TwoPoint.py
Clone Instance
1
Line Count
28
Source Line
1
Source File
Bio/GA/Crossover/Point.py

"""Perform two-point crossovers between the genomes of two organisms.

This module performs single-point crossover between two genomes.

SinglePointCrossover:
genome 1 --       A B C*D E F
genome 2 --       a b c*d e f

new genome 1 --   A B C d e f
new genome 2 --   a b c D E F

""" 
# standard modules
from GeneralPoint import TwoCrossover 

class SinglePointCrossover(TwoCrossover): 
     """Perform point crossover between genomes at some defined rate.

    This performs a crossover between two genomes at some defined 
    frequency.  Length of genome is preserved, as the crossover 
    point is the same for either genome.
    """ 

     def __init__(self,crossover_prob = .1): 
         """Initialize to do crossovers at the specified probability.
\t"""    
         TwoCrossover.__init__(self,1,crossover_prob) 
     


Clone Instance
2
Line Count
34
Source Line
1
Source File
Bio/GA/Crossover/TwoPoint.py

"""Perform two-point crossovers between the genomes of two organisms.

This module performs two-point crossover between two genomes.
There are two flavors: OnePointCrossover (Point) and TwoPointCrossover.

TwoPointCrossover is the minimal crossover technique that
facilitates diverse genome length.  Do not use this if you need to
maintain consistent genome length.

TwoPointCrossover:
genome 1 --       A B*C D E F
genome 2 --       a b c*d e f

new genome 1 --   A B d e f
new genome 2 --   a b c C D E F

""" 
# standard modules
from GeneralPoint import TwoCrossover 

class TwoPointCrossover(TwoCrossover): 
     """Perform two point crossover between genomes at some defined rate.

    This performs a crossover between two genomes at some defined frequency.
    The location of the points of crossover are chosen randomly if the
    crossover meets the probability to occur.  
    """ 

     def __init__(self,crossover_prob = .1): 
         """Initialize to do crossovers at the specified probability.
        """ 
         TwoCrossover.__init__(self,2,crossover_prob) 
     


Clone AbstractionParameter Count: 5Parameter Bindings

 [[#variable6016e200]]
# standard modules
from GeneralPoint import TwoCrossover 

class [[#variable6016e1c0]](TwoCrossover):
   [[#variable61884e20]]

  def __init__(self,crossover_prob = .1):
  
     [[#variable6016e180]]
    TwoCrossover.__init__(self, [[#variable6016e060]],crossover_prob) 
  
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6016e200]]
"""Perform two-point crossovers between the genomes of two organisms.

This module performs two-point crossover between two genomes.
There are two flavors: OnePointCrossover (Point) and TwoPointCrossover.

TwoPointCrossover is the minimal crossover technique that
facilitates diverse genome length.  Do not use this if you need to
maintain consistent genome length.

TwoPointCrossover:
genome 1 --       A B*C D E F
genome 2 --       a b c*d e f

new genome 1 --   A B d e f
new genome 2 --   a b c C D E F

""" 
12[[#6016e200]]
"""Perform two-point crossovers between the genomes of two organisms.

This module performs single-point crossover between two genomes.

SinglePointCrossover:
genome 1 --       A B C*D E F
genome 2 --       a b c*d e f

new genome 1 --   A B C d e f
new genome 2 --   a b c D E F

""" 
21[[#6016e1c0]]
TwoPointCrossover 
22[[#6016e1c0]]
SinglePointCrossover 
31[[#61884e20]]
"""Perform two point crossover between genomes at some defined rate.

    This performs a crossover between two genomes at some defined frequency.
    The location of the points of crossover are chosen randomly if the
    crossover meets the probability to occur.  
    """ 
32[[#61884e20]]
"""Perform point crossover between genomes at some defined rate.

    This performs a crossover between two genomes at some defined 
    frequency.  Length of genome is preserved, as the crossover 
    point is the same for either genome.
    """ 
41[[#6016e180]]
"""Initialize to do crossovers at the specified probability.
        """ 
42[[#6016e180]]
"""Initialize to do crossovers at the specified probability.
\t""" 
51[[#6016e060]]
2 
52[[#6016e060]]
1