|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ImageDataSpotList
public class ImageDataSpotList
ImageDataSpotList class supports image data spot list object access.
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 Flicker Mozilla and Legal files are available on http://open2dprot.sourceforge.net/Flicker
Field Summary | |
---|---|
boolean |
changeSpotList
|
static Flicker |
flk
Flicker global classes |
ImageData |
id
Instance of ImageData for extended classes |
int |
measCtr
"Measurement counter" in measurements for this image |
int |
nSpots
# of measured spots used in SpotList[] |
int |
nSpotsBackup
# of measured spots used in SpotListBkup[] |
Spot[] |
spotList
List of measured spots data if not null [0:nSpots-1]. |
Spot[] |
spotListBkup
Backup list of measured spots data if not null [0:nSpotsBkup-1]. |
static Util |
util
extended Flicker state variable class |
Constructor Summary | |
---|---|
ImageDataSpotList(ImageData id)
ImageDataSpotList() - Constructor for Spot Lists |
Method Summary | |
---|---|
Spot |
addUniqueSpotToSpotList(int nGel,
int nbr,
int nCirMask,
int circleRadius,
int xC,
int yC,
int xB,
int yB,
float area,
boolean isCalibFlag,
boolean useTotDensityFlag,
float density,
float densPrime,
float bkgrd,
float mnDens,
float totDens,
float mnDensPrime,
float mnBkgrd,
float dMax,
float dMin,
float dMaxBkgrd,
float dMinBkgrd)
addUniqueSpotToSpotList() - add spot if it is unique to the spot list else just update the spot measurement but keep the spot number if it is an existing spot if +- 1 pixel in xC and/or yC |
boolean |
backupSpotList(boolean clearSpotListFlag)
backupSpotList() - backup spotList[0:nSpots-1] to spotListBkup[] and nSpotBkup. |
void |
clean()
clean() - cleanup the instance. |
boolean |
clearSpotList()
clearSpotList() - prompt "are you sure" and clear spot list if 'yes'. |
boolean |
editSpotFromSpotList(Spot s,
boolean editOnlyIDflag)
editSpotFromSpotList() - edit the spot from the spot list if found |
boolean |
editSpotFromSpotList(Spot s1,
Spot s2,
boolean editOnlyIDflag)
editSpotFromSpotList() - edit the spot from the spot list if found |
void |
forceClearSpotList()
forceClearSpotList() - clear spot list and do NOT prompt if not empty. |
boolean |
lookupProtIDandNameToSpotList(ImageData iData)
lookupProtIDandNameToSpotList() - if the gel is clickable and the user enabled the clickable DB checkbox, then search the clickableCGIbaseURL protein database for all spots in the spot list and for those that have matches, update the Spot.id and Spot.name. |
Spot |
lookupSpotInSpotListByXY(int xC,
int yC)
lookupSpotInSpotListByXY() - lookup the spot in the spotList[0:nSpots-1] if the (xC,yC) are +- 1 pixel in x and/or y. |
java.lang.String |
mapSPIDtoPIRURL(java.lang.String defaultURL,
java.lang.String clickCGIbaseURL,
int x,
int y)
mapSPIDtoPIRURL() - if using a PIR server database AND we have either looked up the Swiss-Prot ID for the spot, then map the dataURL to the PRI site by adding the SP ID to the currentPRIbaseURL. |
boolean |
restoreSpotList()
restoreSpotList() - retore spotList[0:nSpots-1] from spotListBkup[] and nSpotBkup. |
boolean |
rmvSpotFromSpotList(Spot s)
rmvSpotFromSpotList() - remove the spot from the spot list if found If the spot is at the end of the list, the reuse the spot number. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static Flicker flk
public static Util util
public ImageData id
public boolean changeSpotList
public Spot[] spotList
public int nSpots
public int measCtr
public Spot[] spotListBkup
public int nSpotsBackup
Constructor Detail |
---|
public ImageDataSpotList(ImageData id)
Method Detail |
---|
public void clean()
public boolean clearSpotList()
public void forceClearSpotList()
public boolean backupSpotList(boolean clearSpotListFlag)
clearSpotListFlag
- to also clear the spotlist
restoreSpotList
public boolean restoreSpotList()
backupSpotList
public boolean editSpotFromSpotList(Spot s, boolean editOnlyIDflag)
s
- is spot to editeditOnlyIDflag
- if only want to edit/assign the spot id
public boolean editSpotFromSpotList(Spot s1, Spot s2, boolean editOnlyIDflag)
s1
- is spot to edit in left images2
- is spot to edit in right imageeditOnlyIDflag
- if only want to edit/assign the spot id
public boolean rmvSpotFromSpotList(Spot s)
s
- is spot to remove
public java.lang.String mapSPIDtoPIRURL(java.lang.String defaultURL, java.lang.String clickCGIbaseURL, int x, int y)
defaultURL
- to use if PIR server access is not enabled.clickCGIbaseURL
- is the Swiss-Prot ID if not null.
public boolean lookupProtIDandNameToSpotList(ImageData iData)
iData
- is the gel image to update
public Spot addUniqueSpotToSpotList(int nGel, int nbr, int nCirMask, int circleRadius, int xC, int yC, int xB, int yB, float area, boolean isCalibFlag, boolean useTotDensityFlag, float density, float densPrime, float bkgrd, float mnDens, float totDens, float mnDensPrime, float mnBkgrd, float dMax, float dMin, float dMaxBkgrd, float dMinBkgrd)
nGel
- is the Gel# (1 or 2) rof "left" or "right" image.nbr
- is measurement number of spot unique to the associated gelnCirMask
- is the circular mask diametercircleRadius
- is the radius of the circlular maskxC
- is the spot X centroidyC
- is the spot Y centroidxB
- is background x centroidyB
- is background Y centroidarea
- is spot area in pixels (float so possibly scaled)isCalibFlag
- is measurements are calibrrated in OD rather
than grayscaleuseTotDensityFlag
- measurements total density else mean valuesdensity
- is total density uncorrected for background computed as
the sum of the gray value or calibrated gray value (i.e. OD?)densPrime
- is the total density corrected for background by
computed as: densPrime = (density - mnBkgrd*area)bkgrd
- is the total spot mean background densitymnDens
- is the mean densitytotDens
- is the total densitymnDensPrime
- is mean density corrected for background
computed as (mnDensPrime - mnBkgrd)mnBkgrd
- is the mean spot mean background densitydMax
- is spot MAX ODdMin
- is spot MIN ODdMaxBkgrd
- background for spot MAX OD or gray valuedMinBkgrd
- background for spot MIN OD or gray value
public Spot lookupSpotInSpotListByXY(int xC, int yC)
xC
- to testyC
- to test
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |