org.metaqtl.factory
Class MapDBFactory

java.lang.Object
  extended by org.metaqtl.factory.MapDBFactory

public final class MapDBFactory
extends java.lang.Object

A factory to read the list and the properties of a set of genetic maps.


Constructor Summary
MapDBFactory()
           
 
Method Summary
static IBioGenome[] read(java.io.Reader reader)
          This method reads a file formated as follows : map property1 property2 property3 ...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapDBFactory

public MapDBFactory()
Method Detail

read

public static IBioGenome[] read(java.io.Reader reader)
                         throws java.io.IOException
This method reads a file formated as follows : map property1 property2 property3 ... when the fields are assumed to not contain blank space. For each row of the input file (except the header which is mandatory) a IBioGenome is created and the array returns should have the same length as the number of rows in the file.

Parameters:
file - the file location.
Returns:
the array of genetic maps.
Throws:
java.io.IOException