edu.mssm.crover.tables.readers
Class MinesetTableReader
java.lang.Object
edu.mssm.crover.tables.readers.MinesetTableReader
public class MinesetTableReader
- extends Object
Reads SGI's MineSet ASCII table format. The following types are supported :
string, float, double, int. Enumerations are not supported at the moment (one
could define an enumeration class that represent the value as an int and has
a toString() method that returns the symbol associated with each valid
value). Options are ignored.
|
Method Summary |
static void |
addColumns(Table table,
Reader schema)
Parse the Mineset schema file to extract the column names and types. |
static void |
addData(Table table,
Reader dataReader)
|
static void |
addData(Table table,
Reader data,
String stopAt)
|
String |
getDescription()
|
String |
getShortName()
|
static void |
main(String[] args)
|
protected static void |
parseColumnHeader(Table t,
String identifier,
String line,
Class type,
int linenumber)
|
static Table |
read(Reader schema,
InputStream data)
|
static Table |
read(Reader schema,
Reader data)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MinesetTableReader
public MinesetTableReader()
getShortName
public String getShortName()
getDescription
public String getDescription()
read
public static Table read(Reader schema,
InputStream data)
throws UnsupportedFormatException,
SyntaxErrorException
- Throws:
UnsupportedFormatException
SyntaxErrorException
read
public static Table read(Reader schema,
Reader data)
throws UnsupportedFormatException,
SyntaxErrorException
- Throws:
UnsupportedFormatException
SyntaxErrorException
addColumns
public static void addColumns(Table table,
Reader schema)
throws IOException,
SyntaxErrorException
- Parse the Mineset schema file to extract the column names and types. Add
these columns to the table. Parses only the content of the input {}
block.
- Throws:
IOException
SyntaxErrorException
addData
public static void addData(Table table,
Reader data,
String stopAt)
throws SyntaxErrorException,
IOException
- Throws:
SyntaxErrorException
IOException
parseColumnHeader
protected static void parseColumnHeader(Table t,
String identifier,
String line,
Class type,
int linenumber)
throws SyntaxErrorException
- Throws:
SyntaxErrorException
main
public static void main(String[] args)
addData
public static void addData(Table table,
Reader dataReader)
throws IOException,
SyntaxErrorException
- Throws:
IOException
SyntaxErrorException
Copyright © 2001-2009 Institute for Computational Biomedicine, All Rights Reserved.