|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object O2Plib.db.CSD.CSDglb O2Plib.db.CSD.CSDacc
public class CSDacc
Class CSDacc contains the accession database information for the Composite Samples Database (CSD).
This file is derived from Open2Dprot, MAExplorer and GELLAB-II code.
This work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government. As a work of the United States Government there is no associated copyright. It is offered as open source software under the Mozilla Public License (version 1.1) subject to the limitations noted in the accompanying LEGAL file. This notice must be included with the code. The Open2Dprot Mozilla and Legal files are available on http://Open2Dprot.sourceforge.net/.
Field Summary | |
---|---|
static DbAccession |
acc
Accession database if it exists |
java.lang.String |
accFile
Accession database file if it exists |
java.lang.String |
accFilePath
Full Accession database file if it exists |
int[] |
idxSampleList
index values of the samples [0:nSamples-1] |
int |
maxFields
maximum # of MIAPE accession fields used to define the study string, Size of miapeStudyFields[] (optional). |
int |
maxSamples
maximum # of samples in accession database (optional). |
java.lang.String[][] |
miapeStudyData
[0:nSamples-1][0:nMiapeFields-1] A short version of a samples's accession info is assembled from MIAPE/accession fields specified by miapeStudyFields[]. |
java.lang.String[] |
miapeStudyFields
[0:nMiapeFields-1] list of names of MIAPE accession fields used to define the study string |
int |
nMiapeFields
# of MIAPE accession fields used to define the study string, Size of miapeStudyFields[]. |
int |
nSamples
# samples |
java.lang.String[] |
sampleNames
names of the samples [0:nSamples-1] |
static java.lang.String |
VERSION
Version for this module |
Constructor Summary | |
---|---|
CSDacc()
CSDacc() - Constructor for new CSDacc. |
Method Summary | |
---|---|
java.lang.String[][] |
getStudyDataForAllSamples()
getStudyDataForAllSamples() - get the accession database study data for all samples |
java.lang.String[] |
getStudyDataForSample(int sampleIdx)
getStudyDataForSample() - get the accession database study data for a particular sample |
java.lang.String[] |
getStudyFields()
getStudyFields() - get the accession database study fields |
static java.lang.String |
getTabDelimitedFields()
getTabDelimitedFields() - get a string representation of the tab-delimited data fields |
void |
setAccessionDB(java.lang.String accFile,
java.lang.String accFilePath,
DbAccession acc)
setAccessionDB() - assign the accession DB |
boolean |
setStudyFields(java.lang.String[] studyFields)
setStudyFields() - set the accession database study fields. |
java.lang.String |
toString()
toString() - get a pretty-print string representation of this instance |
java.lang.String |
toTabDelimitedData()
toTabDelimitedData() - get a string representation of this instance as tab-delimited data values |
java.lang.String |
toXML()
toXML() - get a string representation of this instance as XML |
Methods inherited from class O2Plib.db.CSD.CSDglb |
---|
initGlb |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VERSION
public static DbAccession acc
public java.lang.String accFile
public java.lang.String accFilePath
public int nSamples
public int maxSamples
public java.lang.String[] sampleNames
public int[] idxSampleList
public java.lang.String[] miapeStudyFields
public java.lang.String[][] miapeStudyData
public int nMiapeFields
public int maxFields
Constructor Detail |
---|
public CSDacc()
Method Detail |
---|
public void setAccessionDB(java.lang.String accFile, java.lang.String accFilePath, DbAccession acc)
accFile
- is accession database fileaccFilePath
- is full path accession database fileacc
- is the accession database instancepublic java.lang.String[] getStudyFields()
public boolean setStudyFields(java.lang.String[] studyFields)
study
- fields
public java.lang.String[][] getStudyDataForAllSamples()
public java.lang.String[] getStudyDataForSample(int sampleIdx)
sampleIdx
- is the sample to use
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String getTabDelimitedFields()
public java.lang.String toTabDelimitedData()
public java.lang.String toXML()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |