org.metaqtl.util
Class GeneticMapProperties

java.lang.Object
  extended by org.metaqtl.util.GeneticMapProperties

public final class GeneticMapProperties
extends java.lang.Object

General comments must be added here.

Author:
Julien Cornouiller Additions must be added here.

Constructor Summary
GeneticMapProperties()
           
 
Method Summary
static CrossPopulation getCrossDesign(IBioGenome map)
          This routine returns an object which handle the properties of the offspring which have been used to create the genetic map.
static CrossPopulation getMappingCross(IBioGenome map)
           
static int getMappingFunction(IBioGenome map)
          This methods returns the integer code of the mapping function associated to the given genetic map.
static int getMappingUnit(IBioGenome map)
           
static boolean needToBeRescaled(IBioGenome map)
          Returns true if the given map need to be rescaled - due to the mapping extansion for some pedigree designs.
static void setCrossDesign(IBioGenome map, CrossPopulation crossDesign)
           
static void setMappingContext(IBioGenome map, int mapping_function, int mapping_unit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneticMapProperties

public GeneticMapProperties()
Method Detail

getMappingFunction

public static int getMappingFunction(IBioGenome map)
This methods returns the integer code of the mapping function associated to the given genetic map.

Returns:
the mapping function integer code.
See Also:
IConsensusConstants, IGeneticMapProperties.

getCrossDesign

public static CrossPopulation getCrossDesign(IBioGenome map)
This routine returns an object which handle the properties of the offspring which have been used to create the genetic map. This object is created from the cross properties of the genetic map.

Parameters:
map - a genetic map
Returns:
the cross population type for this genetic map
See Also:
IConsensusConstants, IGeneticMapProperties.

getMappingUnit

public static int getMappingUnit(IBioGenome map)
Parameters:
map -
Returns:

needToBeRescaled

public static boolean needToBeRescaled(IBioGenome map)
Returns true if the given map need to be rescaled - due to the mapping extansion for some pedigree designs.

Parameters:
map -
Returns:

setMappingContext

public static void setMappingContext(IBioGenome map,
                                     int mapping_function,
                                     int mapping_unit)
Parameters:
map -
mapping_function_haldane -
mapping_unit_cm -

setCrossDesign

public static void setCrossDesign(IBioGenome map,
                                  CrossPopulation crossDesign)
Parameters:
map -
crossDesign -

getMappingCross

public static CrossPopulation getMappingCross(IBioGenome map)
Parameters:
map -
Returns: