smile.data.parser.microarray
Class GCTParser
- java.lang.Object
-
- smile.data.parser.microarray.GCTParser
-
public class GCTParser extends java.lang.ObjectGene Cluster Text file parser. The GCT format is a tab delimited file format that describes a gene expression dataset. It is organized as follows:The first line contains the version string and is always the same for this file format. Therefore, the first line must be as follows:
The second line contains numbers indicating the size of the data table that is contained in the remainder of the file. Note that the name and description columns are not included in the number of data columns.#1.2Line format:
Example:(# of data rows) (tab) (# of data columns)
The third line contains a list of identifiers for the samples associated with each of the columns in the remainder of the file.7129 58Line format:
Example:Name(tab)Description(tab)(sample 1 name)(tab)(sample 2 name) (tab) ... (sample N name)
The remainder of the data file contains data for each of the genes. There is one row for each gene and one column for each of the samples. The number of rows and columns should agree with the number of rows and columns specified on line 2. Each row contains a name, a description, and an intensity value for each sample. Names and descriptions can contain spaces, but may not be empty. If no description is available, enter a text string such as NA or NULL. Intensity values may be missing. To specify a missing intensity value, leave the field empty: ...(tab)(tab)....Name Description DLBC1_1 DLBC2_1 ... DLBC58_0Line format:
Example:(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 Summary
Constructors Constructor and Description GCTParser()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description AttributeDatasetparse(java.io.File file)Parse a GCT dataset from given file.AttributeDatasetparse(java.lang.String path)Parse a GCT dataset from given file.AttributeDatasetparse(java.lang.String name, java.io.File file)Parse a GCT dataset from given file.AttributeDatasetparse(java.lang.String name, java.io.InputStream stream)Parse a GCT dataset from an input stream.AttributeDatasetparse(java.lang.String name, java.lang.String path)Parse a GCT dataset from given file.AttributeDatasetparse(java.lang.String name, java.net.URI uri)Parse a GCT dataset from given URI.AttributeDatasetparse(java.net.URI uri)Parse a GCT dataset from given URI.
-
-
-
Method Detail
-
parse
public AttributeDataset parse(java.net.URI uri) throws java.io.IOException, java.text.ParseException
Parse a GCT dataset from given URI.- Throws:
java.io.IOExceptionjava.text.ParseException
-
parse
public AttributeDataset parse(java.lang.String name, java.net.URI uri) throws java.io.IOException, java.text.ParseException
Parse a GCT dataset from given URI.- Parameters:
uri- the URI of data source.- Throws:
java.io.IOExceptionjava.text.ParseException
-
parse
public AttributeDataset parse(java.lang.String path) throws java.io.IOException, java.text.ParseException
Parse a GCT dataset from given file.- Throws:
java.io.IOExceptionjava.text.ParseException
-
parse
public AttributeDataset parse(java.lang.String name, java.lang.String path) throws java.io.IOException, java.text.ParseException
Parse a GCT dataset from given file.- Parameters:
path- the file path of data source.- Throws:
java.io.IOExceptionjava.text.ParseException
-
parse
public AttributeDataset parse(java.io.File file) throws java.io.IOException, java.text.ParseException
Parse a GCT dataset from given file.- Throws:
java.io.IOExceptionjava.text.ParseException
-
parse
public AttributeDataset parse(java.lang.String name, java.io.File file) throws java.io.IOException, java.text.ParseException
Parse a GCT dataset from given file.- Parameters:
file- the file of data source.- Throws:
java.io.IOExceptionjava.text.ParseException
-
parse
public AttributeDataset parse(java.lang.String name, java.io.InputStream stream) throws java.io.IOException, java.text.ParseException
Parse a GCT dataset from an input stream.- Parameters:
name- the name of dataset.stream- the input stream of data.- Throws:
java.io.IOExceptionjava.text.ParseException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG