|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--ReadPRP
Class ReadPRP.java - read a .prp file and set up data structures. 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 | |
java.lang.String |
dataFile
full name of data file to use |
java.lang.String[] |
field
fields [0:nFields] |
int |
idx_estExpr
index for field name max EST expression |
int |
idx_FamilyName
index for field name Family Name |
int |
idx_GenBankID
index for field name GenBank ID |
int |
idx_MW
index for field name MW |
int |
idx_pI
index for field name pI |
int |
idx_SwissProtAcc
index for field name SwissProt Acc |
int |
idx_SwissProtId
index for field name SwissProt ID |
int |
idx_TissueName
index for field name Tissue Name |
static int |
MAX_COLS
max # cols in data file |
int |
maxCols
max size of token array |
float |
maxData_MW
range of MW data |
float |
maxData_pI
range of pI data |
int |
maxProteins
max # of proteins |
float |
minData_MW
range of MW data |
float |
minData_pI
range of pI data |
int |
nCols
actual # of tokens found |
int |
nFields
# of fields in actual data file |
int |
nProteins
actual # of proteins found |
Protein[] |
protList
[0:nProteins-1] list of all proteins |
private ProtPlot |
prp
instance of ProtPlot |
java.lang.String |
prpDir
Directory of the .prp data file to use |
java.lang.String |
prpFile
File of the .prp data file to use |
java.lang.String |
prpName
Name of the .prp data file without .prp and cvt '_' to " " |
int |
sampleNbr
The sampleNbr for the sample being read |
boolean |
strictDataFormatFlag
Flag determines whether strict parsing is used. |
private java.lang.String[] |
tokArray
token parse array [0:nCols-1] return all tokens/row |
private char[] |
tokBuf
token buffer for parsing a line |
private UtilPRP |
util
instance of UtilPRP |
| Constructor Summary | |
(package private) |
ReadPRP(ProtPlot prp,
java.lang.String prpDir,
java.lang.String prpFile,
int sampleNbr,
int maxProteins,
java.lang.String msg,
boolean strictDataFormatFlag)
ReadPRP() - constructor to read and build a sample data structure. |
| Method Summary | |
int |
getArrayOfTabDelimTokens(char[] lineBuf,
int bufSize,
java.lang.String[] tokArray)
getArrayOfTabDelimTokens() - get array of tab-delim tokens The number of expected columns is specified and if there is no more data, it will leave those cells null. |
int |
lookupPIDfromMPID(int mPid)
lookupPIDfromMPID() - lookup the pid given the mPid |
private boolean |
parseRows(java.lang.String sData,
int nCols)
parseRows() - parse & save a rows of data in rd.protList[] data structures. |
boolean |
readDataFile(java.lang.String msg)
readDataFile() - read (pI,mw,SP-ID) into data structure |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final int MAX_COLS
private ProtPlot prp
private UtilPRP util
public java.lang.String prpDir
public java.lang.String prpFile
public java.lang.String prpName
public java.lang.String dataFile
public boolean strictDataFormatFlag
public java.lang.String[] field
public int maxCols
public int nCols
public int sampleNbr
public int maxProteins
public int nProteins
public Protein[] protList
public float minData_pI
public float maxData_pI
public float minData_MW
public float maxData_MW
public int nFields
public int idx_pI
public int idx_MW
public int idx_SwissProtAcc
public int idx_SwissProtId
public int idx_GenBankID
public int idx_FamilyName
public int idx_TissueName
public int idx_estExpr
private java.lang.String[] tokArray
private char[] tokBuf
| Constructor Detail |
ReadPRP(ProtPlot prp,
java.lang.String prpDir,
java.lang.String prpFile,
int sampleNbr,
int maxProteins,
java.lang.String msg,
boolean strictDataFormatFlag)
prp - instance of ProtPlotprpDir - is the directory for the .prp file to readprpFile - for the .prp file to readsampleNbr - for the current samplemaxProteins - to readmsg - to display while readingstrictDataFormatFlag - to perform strict parsing (see above)| Method Detail |
public boolean readDataFile(java.lang.String msg)
msg - to display while reading
public int getArrayOfTabDelimTokens(char[] lineBuf,
int bufSize,
java.lang.String[] tokArray)
lineBuf - is the source databufSize - is the # charstokArray - where data is teturned
private boolean parseRows(java.lang.String sData,
int nCols)
sData - to parsenCols - to look for in datapublic int lookupPIDfromMPID(int mPid)
mPid - to lookup
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||