public class TXTParser
extends java.lang.Object
The first line contains the labels Name and Description followed by the identifiers for each sample in the dataset. The Description is optional.
Line format: Name(tab)Description(tab)(sample 1 name)(tab)(sample 2 name) (tab) ... (sample N name)
Example: Name Description DLBC1_1 DLBC2_1 ... DLBC58_0
Line format: (gene name) (tab) (gene description) (tab) (col 1 data) (tab) (col 2 data) (tab) ... (col N data)
Example: AFFX-BioB-5_at AFFX-BioB-5_at (endogenous control) -104 -152 -158 ... -44
| Constructor and Description |
|---|
TXTParser()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AttributeDataset |
parse(java.io.File file)
Parse a TXT dataset from given file.
|
AttributeDataset |
parse(java.lang.String path)
Parse a TXT dataset from given file.
|
AttributeDataset |
parse(java.lang.String name,
java.io.File file)
Parse a TXT dataset from given file.
|
AttributeDataset |
parse(java.lang.String name,
java.io.InputStream stream)
Parse a TXT dataset from an input stream.
|
AttributeDataset |
parse(java.lang.String name,
java.lang.String path)
Parse a TXT dataset from given file.
|
AttributeDataset |
parse(java.lang.String name,
java.net.URI uri)
Parse a TXT dataset from given URI.
|
AttributeDataset |
parse(java.net.URI uri)
Parse a TXT dataset from given URI.
|
public AttributeDataset parse(java.net.URI uri) throws java.io.IOException, java.text.ParseException
java.io.IOExceptionjava.text.ParseExceptionpublic AttributeDataset parse(java.lang.String name, java.net.URI uri) throws java.io.IOException, java.text.ParseException
uri - the URI of data source.java.io.IOExceptionjava.text.ParseExceptionpublic AttributeDataset parse(java.lang.String path) throws java.io.IOException, java.text.ParseException
java.io.IOExceptionjava.text.ParseExceptionpublic AttributeDataset parse(java.lang.String name, java.lang.String path) throws java.io.IOException, java.text.ParseException
path - the file path of data source.java.io.IOExceptionjava.text.ParseExceptionpublic AttributeDataset parse(java.io.File file) throws java.io.IOException, java.text.ParseException
java.io.IOExceptionjava.text.ParseExceptionpublic AttributeDataset parse(java.lang.String name, java.io.File file) throws java.io.IOException, java.text.ParseException
file - the file of data source.java.io.IOExceptionjava.text.ParseExceptionpublic AttributeDataset parse(java.lang.String name, java.io.InputStream stream) throws java.io.IOException, java.text.ParseException
name - the name of dataset.stream - the input stream of data.java.io.IOExceptionjava.text.ParseException