|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--ReadTissues
Class ReadTissues.java - read tissues file mapping tissues to bit #s. The bits go from right to left. So that if a bit # is say 3, the corresponding bit is (1<<3).
The tab-delimited data looks like the following (the values may change): uncharacterized tissue 1 heart 2 lung 3 vascular 4 liver 5 eye 6 testis 7 brain 8 . . . adrenal medulla 50 nervous 51This work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government and Djamel Medjahed (SAIC-Frederick). 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 work was derived from MAExplorer under the Mozilla 1.1 Open Source Public License by Peter Lemkin of the National Cancer Institute, an agency of the United States Government subject to the limitations noted in the accompanying LEGAL file. See licence info on http://maexplorer.sourceforge.org/
| Field Summary | |
private java.lang.String[] |
defTissues
Default list of tissues |
int |
maxTissues
max # of families |
int |
nTissues
# of families |
private ProtPlot |
prp
instance of ProtPlot |
long[] |
tissueBits
list of tissue tissue BITS [0:nFamilies-1] return all tokens/row the tissueBit[i] = 2**tissueNbr[i]. |
java.lang.String[] |
tissueNames
List of tissue names [0:nTissues-1] return all tokens/row |
java.lang.String |
tissueNamesFile
Name of the tissue data tab-delimited file. |
int[] |
tissueNbrs
list of tissue tissue Numbers [0:nFamilies-1] return all tokens/row |
private char[] |
tokBuf
token buffer |
private UtilPRP |
util
instance of UtilPRP |
| Constructor Summary | |
(package private) |
ReadTissues(ProtPlot prp,
java.lang.String tissueNamesFile,
int maxTissues,
java.lang.String msg)
ReadTissues() - constructor |
| Method Summary | |
long |
cvtTissueNamesToBits(java.lang.String useTissueNames)
cvtTissueNamesToBits() - convert tissue names to tissueBits Eg. |
java.lang.String |
cvtTissuesStr(long tBits)
cvtTissuesStr() - lookup tissues from the tissueBits |
private boolean |
parseRows(java.lang.String sData)
parseRows() - parse and save a rows of data in rd.protList[] data structures. |
boolean |
readTissuesFile(java.lang.String msg)
readTissuesFile() - read list of tissues into data structure |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private ProtPlot prp
private UtilPRP util
private java.lang.String[] defTissues
public java.lang.String tissueNamesFile
public int maxTissues
public int nTissues
public java.lang.String[] tissueNames
public int[] tissueNbrs
public long[] tissueBits
private char[] tokBuf
| Constructor Detail |
ReadTissues(ProtPlot prp,
java.lang.String tissueNamesFile,
int maxTissues,
java.lang.String msg)
prp - is instance of ProtPlottissueNamesFile - namemaxTissues - in filemsg - to use while reading| Method Detail |
public boolean readTissuesFile(java.lang.String msg)
msg - to display while reading file.private boolean parseRows(java.lang.String sData)
sData - to parsepublic java.lang.String cvtTissuesStr(long tBits)
tBits - is the tissue bits to lookup as string equivalentpublic long cvtTissueNamesToBits(java.lang.String useTissueNames)
tissueNames - to convert to bits, separated by "," (CHK)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||