|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--ReadFamilies
Class ReadFamilies.java - read protein families file mapping protein families 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:
UNKNOWN 1
Apoptosis 2
Bcl-2 family3
Cdk inhibition 4
. . .
Transport 50
Tumor suppressor 51
This 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[] |
defFamilies
default list of protein families |
long[] |
familyBits
list of tissue family BITS [0:nFamilies-1] return all tokens/row the familyBit[i] = 2**familyNbr[i]. |
java.lang.String[] |
familyNames
list of tissue family names [0:nFamilies-1] return all tokens/row |
java.lang.String |
familyNamesFile
Name of the family data tab-delimited file. |
int[] |
familyNbrs
list of tissue family Numbers [0:nFamilies-1] return all tokens/row |
int |
maxFamilies
max # of families |
int |
nFamilies
# of families |
private ProtPlot |
prp
instance of ProtPlot |
private char[] |
tokBuf
token buffer |
private UtilPRP |
util
instance of UtilPRP |
| Constructor Summary | |
(package private) |
ReadFamilies(ProtPlot prp,
java.lang.String familyNamesFile,
int maxFamilies,
java.lang.String msg)
ReadFamilies() - constructor |
| Method Summary | |
java.lang.String |
cvtFamiliesStr(long fBits)
cvtFamiliesStr() - lookup family strings for familyBits |
long |
cvtFamilyNamesToBits(java.lang.String useFamilyNames)
cvtFamilyNamesToBits() - convert a String list of family names to familyBits. |
private boolean |
parseRows(java.lang.String sData)
parseRows() - parse and save a rows of data in rd.protList[] data structures. |
boolean |
readFamiliesFile(java.lang.String msg)
readFamiliesFile() - read list of Families into data structure |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private ProtPlot prp
private UtilPRP util
private java.lang.String[] defFamilies
public java.lang.String familyNamesFile
public int maxFamilies
public int nFamilies
public java.lang.String[] familyNames
public int[] familyNbrs
public long[] familyBits
private char[] tokBuf
| Constructor Detail |
ReadFamilies(ProtPlot prp,
java.lang.String familyNamesFile,
int maxFamilies,
java.lang.String msg)
prp - is instance of ProtPlotfamilyNamesFile - namemaxFamilies - in filemsg - to use while reading| Method Detail |
public boolean readFamiliesFile(java.lang.String msg)
msg - to display while reading file.private boolean parseRows(java.lang.String sData)
sData - to parsepublic java.lang.String cvtFamiliesStr(long fBits)
fBits - to lookup as string equivalentpublic long cvtFamilyNamesToBits(java.lang.String useFamilyNames)
useFamilyNames - to convert to bits, separated by "," (CHK)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||