public class TXTParser extends 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(File file)
Parse a TXT dataset from given file.
|
AttributeDataset |
parse(String path)
Parse a TXT dataset from given file.
|
AttributeDataset |
parse(String name,
File file)
Parse a TXT dataset from given file.
|
AttributeDataset |
parse(String name,
InputStream stream)
Parse a TXT dataset from an input stream.
|
AttributeDataset |
parse(String name,
String path)
Parse a TXT dataset from given file.
|
AttributeDataset |
parse(String name,
URI uri)
Parse a TXT dataset from given URI.
|
AttributeDataset |
parse(URI uri)
Parse a TXT dataset from given URI.
|
public AttributeDataset parse(URI uri) throws FileNotFoundException, IOException, ParseException
public AttributeDataset parse(String name, URI uri) throws FileNotFoundException, IOException, ParseException
uri - the URI of data source.FileNotFoundExceptionIOExceptionParseExceptionpublic AttributeDataset parse(String path) throws FileNotFoundException, IOException, ParseException
public AttributeDataset parse(String name, String path) throws FileNotFoundException, IOException, ParseException
path - the file path of data source.FileNotFoundExceptionIOExceptionParseExceptionpublic AttributeDataset parse(File file) throws FileNotFoundException, IOException, ParseException
public AttributeDataset parse(String name, File file) throws FileNotFoundException, IOException, ParseException
file - the file of data source.FileNotFoundExceptionIOExceptionParseExceptionpublic AttributeDataset parse(String name, InputStream stream) throws IOException, ParseException
name - the name of dataset.stream - the input stream of data.FileNotFoundExceptionIOExceptionParseExceptionCopyright © 2015. All rights reserved.