public class GCTParser extends Object
The first line contains the version string and is always the same for this file format. Therefore, the first line must be as follows:
#1.2
Line format:
(# of data rows) (tab) (# of data columns)
7129 58
Line format:
Name(tab)Description(tab)(sample 1 name)(tab)(sample 2 name) (tab) ... (sample N name)
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)
AFFX-BioB-5_at AFFX-BioB-5_at (endogenous control) -104 -152 -158 ... -44
| Constructor and Description |
|---|
GCTParser()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AttributeDataset |
parse(File file)
Parse a GCT dataset from given file.
|
AttributeDataset |
parse(String path)
Parse a GCT dataset from given file.
|
AttributeDataset |
parse(String name,
File file)
Parse a GCT dataset from given file.
|
AttributeDataset |
parse(String name,
InputStream stream)
Parse a GCT dataset from an input stream.
|
AttributeDataset |
parse(String name,
String path)
Parse a GCT dataset from given file.
|
AttributeDataset |
parse(String name,
URI uri)
Parse a GCT dataset from given URI.
|
AttributeDataset |
parse(URI uri)
Parse a GCT 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.