|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectAccession.Accglb
Accession.Accession
public class Accession
The Accession program is used for adding or accessioning sampless for an Open2Dprot database. It lets you add and edit data for accession database including optional calibration database (part of the accession DB), landmark database (for Rsample and Samples). It also lets you define the computing window and ND wedge computing window that are part of the accession database.
2
[TODO]
1. For accession information, this code will either invoke
a) initial single accession information Q&A window, or
b) a merged PEDRo/MIAPE Q&A.
2. Add O2Plib.image zoom class for ROI
3. Check SaveAs gif
4. Check Accession.properties startup
5. Debug Calibration. The histogram does not work. Also check
permutations of
(no calibration, data, calib. data in Acc DB, has Wedge ROI CW,
Wedge CW + calibr. data, explict calib w/o wedge, point list
similar to Flicker). Resolve popup of missing data.
6. Add list of measured spot coordinates and size as a new field to
Accession DB and file.
7. Add (File | New Accession File) - prevent overwriting old accession
file names.
This code was derived and refactored from GELLAB-II C language files "Version November 9, 1999", and the Open2Dprot Accession program Java files.
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 |
|---|
| Constructor Summary | |
|---|---|
Accession()
|
|
| Method Summary | |
|---|---|
boolean |
createNewAccDBfile(java.lang.String accDatabaseName,
java.lang.String accDBfile)
createNewAccDBfile() - create a new the accession database file with the header but not the data. |
private boolean |
lookupSampleEntryInAccDB(java.lang.String accNameData,
java.lang.String accFieldName,
java.lang.String accFile,
DbSample dbS)
lookupSampleEntryInAccDB() - lookup the sample image name in the accession DB. |
static void |
main(java.lang.String[] args)
main() - for Accession 2D spot-pairing program for Open2Dprot. |
boolean |
openAccDBfile(java.lang.String accDatabaseName,
boolean tryToSaveCurAccFile)
openAccDBfile() - open the accession database. |
private int |
processSamples(java.lang.String[] args)
processSamples() - process the two samples. |
char[] |
readSsfImage(java.lang.String imageFile,
DbSample dbS)
readSsfImage() - read the SSF image and set image status in the dbSample instance |
private static void |
resetResources(boolean fullResetFlag)
resetResources() - reset any resources that must be reset for the next run of the program. |
boolean |
setRsampleByName(java.lang.String rName)
setRsampleByName() - set and load the Rsample data into dbRsample |
boolean |
setSampleByName(java.lang.String sName)
setSampleByName() - set and load the Sample data into dbSample |
static java.lang.String[] |
setupDebugSwitches(java.lang.String[] argv)
setupDebugSwitches() - setup the debug switches |
static java.lang.String[] |
setupDemoSwitches(java.lang.String[] argv)
setupDemoSwitches() - setup the demo switches for the "gel-HM-019" (HUMAN-AML) and "gel-HM-071" (Human-ALL) samples |
static java.lang.String[] |
setupMinDefaultsSwitches(java.lang.String[] argv)
setupMinDefaultsSwitches() - add the minimum default switches. |
| Methods inherited from class Accession.Accglb |
|---|
initGlb, resetGlb, showReportStatus |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Accession()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - is the argument list of command lineprivate int processSamples(java.lang.String[] args)
private boolean lookupSampleEntryInAccDB(java.lang.String accNameData,
java.lang.String accFieldName,
java.lang.String accFile,
DbSample dbS)
accNameData - is the sample image name to search for. Do not
specify the file extension.accFieldName - is the accession field nameaccFile - is the name of the accession filedbS - is the SSF instance to use
public char[] readSsfImage(java.lang.String imageFile,
DbSample dbS)
imageFile - to readdbS - to update
public boolean setRsampleByName(java.lang.String rName)
rName - - Rsample name to load
public boolean setSampleByName(java.lang.String sName)
sampleName - - to load
private static void resetResources(boolean fullResetFlag)
fullResetFlag - force new resource allocation
public boolean openAccDBfile(java.lang.String accDatabaseName,
boolean tryToSaveCurAccFile)
accDatabaseName - name of new accession database filetryToSaveCurAccFile - if needed (i.e., if
the needToSaveAccessionDataFlag flag is set).
public boolean createNewAccDBfile(java.lang.String accDatabaseName,
java.lang.String accDBfile)
accDatabaseName - name of new accession database fileaccDBfile - is full path of new accession database file
public static java.lang.String[] setupMinDefaultsSwitches(java.lang.String[] argv)
argv - is list of original switches.
public static java.lang.String[] setupDemoSwitches(java.lang.String[] argv)
argv - is list of original switches
public static java.lang.String[] setupDebugSwitches(java.lang.String[] argv)
argv - list of original switches
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||