org.genepattern.io
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Method Summary | |
static IExpressionDataReader |
getExpressionReader(java.lang.String pathname)
Gets an expression data reader that can read the document at the given pathname or null if no reader is found. |
static IExpressionDataWriter |
getExpressionWriterByFormatName(java.lang.String formatName)
Returns a IExpressionDataWriter that can encode the named format |
static ClassVector |
readCls(java.lang.String pathname)
Reads the cls document at the given pathname |
static ExpressionData |
readExpressionData(java.lang.String pathname)
Reads the expression data at the given pathname and returns a new ExpressionData instance. |
static java.lang.Object |
readExpressionData(java.lang.String pathname,
IExpressionDataCreator expressionDataCreator)
Reads the expression data at the given pathname. |
static java.util.List |
readFeatureList(java.lang.String pathname)
Gets a list of features at the given file pathname string |
static void |
readOdf(java.lang.String pathname,
IOdfHandler handler)
Parses the odf document at the given pathname using the specified handler |
static java.lang.String |
write(IExpressionData data,
java.lang.String formatName,
java.lang.String pathname,
boolean checkFileExtension)
Writes expression data to a file in the given format. |
static java.lang.String |
writeCls(ClassVector cv,
java.lang.String pathname,
boolean checkFileExtension)
Writes the given class vector to a file |
static void |
writeFeatureList(java.lang.String[] features,
java.lang.String pathname)
Writes the given feature list to a file |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static ClassVector readCls(java.lang.String pathname) throws java.io.IOException, ParseException
pathname - The pathname string
java.io.IOException - If an error occurs while reading from the file
ParseException - If there is a problem with the data
public static java.util.List readFeatureList(java.lang.String pathname)
throws java.io.IOException
pathname - The pathname string
java.io.IOException - If an error occurs while reading from the file
public static void writeFeatureList(java.lang.String[] features,
java.lang.String pathname)
throws java.io.IOException
features - The featurespathname - A pathname string
java.io.IOException - If an error occurs while saving the data
public static java.lang.Object readExpressionData(java.lang.String pathname,
IExpressionDataCreator expressionDataCreator)
throws java.io.IOException,
ParseException
pathname - The file pathnameexpressionDataCreator - The expression data creator
java.io.IOException - If an error occurs while reading from the file
ParseException - If there is a problem with the datapublic static ExpressionData readExpressionData(java.lang.String pathname) throws java.io.IOException, ParseException
pathname - The file pathname
java.io.IOException - If an error occurs while reading from the file
ParseException - If there is a problem with the datapublic static java.lang.String writeCls(ClassVector cv, java.lang.String pathname, boolean checkFileExtension) throws java.io.IOException
cv - The class vectorpathname - A pathname stringcheckFileExtension - Whether the correct file extension will be added to the
pathname if it is not present.
java.io.IOException - If an error occurs while saving the datapublic static java.lang.String write(IExpressionData data, java.lang.String formatName, java.lang.String pathname, boolean checkFileExtension) throws java.io.IOException
data - the expression data.formatName - a String containing the informal name of a format (e.g., "res"
or "gct".)pathname - a pathname stringcheckFileExtension - Whether the correct file extension will be added to the
pathname if it is not present.
java.io.IOException - If an error occurs while saving the data
public static void readOdf(java.lang.String pathname,
IOdfHandler handler)
throws ParseException,
java.io.IOException
pathname - A pathname stringhandler - The odf handler
true if the odf document was read successfully
java.io.IOException - If an error occurs while reading from the file
ParseException - If there is a problem with the datapublic static IExpressionDataReader getExpressionReader(java.lang.String pathname)
null if no reader is found.
pathname - A pathname string
public static IExpressionDataWriter getExpressionWriterByFormatName(java.lang.String formatName)
formatName - a String containing the informal name of a format (e.g., "res"
or "gct".
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||