edu.iastate.metnet.metaomgraph.utils
Class FlatFileConverter

java.lang.Object
  extended by edu.iastate.metnet.metaomgraph.utils.FlatFileConverter

public class FlatFileConverter
extends java.lang.Object

Class for converting String values based on data in a flat file. The flat file should be a two-column text file, with the columns separated by a space. The left column contains the "original" value, the right column contains the "converted value".

Author:
Nick Ransom

Constructor Summary
FlatFileConverter(java.io.InputStream in)
          Constructs the hashtable by reading values from the text file locusconvert.txt.
 
Method Summary
 java.lang.String convert(java.lang.String convertMe)
          Converts a given Affymetrix ID to a Locus ID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatFileConverter

public FlatFileConverter(java.io.InputStream in)
Constructs the hashtable by reading values from the text file locusconvert.txt. No reason to do this more than once, so this will only be called the first time an instance of the converter is fetched.

Method Detail

convert

public java.lang.String convert(java.lang.String convertMe)
Converts a given Affymetrix ID to a Locus ID

Parameters:
convertMe - The Affymetrix ID to convert.
Returns:
The corresponding Locus ID if there is one, null otherwise.