|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.basedb.core.BasicItem<D>
net.sf.basedb.core.ChildItem<BioAssayData>
net.sf.basedb.core.BioAssay
public class BioAssay
Represents the current intensities of raw data after some transformation
has been applied to it. Usually a single bioassay represents the data
from a single RawBioAssay but it is also possible that
a transformation has merged several bioassays into a single one.
Bioassays are created by one of the BioAssaySet.newRootBioAssay(Collection),
BioAssaySet.newBioAssay(BioAssay) or
BioAssaySet.newBioAssay(Collection). Which one to use depends on the
relationship to it's parents. Bioassays can only be created if the bioassayset
hasn't been committed to the database.
| Field Summary | |
|---|---|
static Item |
TYPE
The type of item represented by this class. |
| Fields inherited from interface net.sf.basedb.core.Nameable |
|---|
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH |
| Constructor Summary | |
|---|---|
BioAssay(BioAssayData data)
Creates a new bioassay item from the given data. |
|
| Method Summary | |
|---|---|
Set<Annotatable> |
getAnnotatableParents()
Get the parent bioassay set, all parent bioassays and all parent raw bioassays. |
AnnotationSet |
getAnnotationSet()
Get the annotation set containing the annotations for this item. |
BioAssaySet |
getBioAssaySet()
Get the bioassayset this bioassay belongs to. |
static BioAssay |
getById(DbControl dc,
int id)
Get a BioAssay item when you know the id. |
(package private) DataCubeColumn |
getDataCubeColumn()
Get the DataCubeColumn object where this bioassay
store it's data. |
short |
getDataCubeColumnNo()
Get the column coordinate in the data cube that this bioassay stores it's data in. |
short |
getDataCubeLayerNo()
Get the layer coordinate in the data cube that this bioassay stores it's data in. |
short |
getDataCubeNo()
Get the number of the data cube this bioassay stores it's data in. |
String |
getDescription()
Get the description for the item. |
Experiment |
getExperiment()
Get the experiment this bioassay belongs to. |
String |
getName()
Get the name of the item. |
(package private) static BioAssay |
getNew(DbControl dc,
BioAssaySet bioAssaySet,
DataCubeColumn column)
Create a new BioAssay item. |
int |
getNumFileSpots()
Get the number of spots that are stored in files. |
int |
getNumSpots()
Get the number of spots in this bioassay. |
ItemQuery<BioAssay> |
getParents()
Get a query for loading the parents bioassays to this bioassay. |
(package private) Permission |
getPermissionForWriteDeleteAndCreate()
USE permission is enough to be able to manage bioassays. |
Protocol |
getProtocol()
Default implementation returns null. |
static ItemQuery<BioAssay> |
getQuery(BioAssaySet bioAssaySet)
Get a query configured to retrieve bioassays in a given bioassayset. |
ItemQuery<RawBioAssay> |
getRawBioAssays()
|
RawDataType |
getRawDataType()
Get the raw data type the experiment uses for the raw data. |
(package private) SharedData |
getSharedParent()
Get the experiment. |
DynamicSpotQuery |
getSpotData()
Get a query that returns spot data for this bioassay. |
Item |
getType()
Get the type of item represented by the object. |
(package private) void |
initPermissions(int granted,
int denied)
Deny DELETE permission. |
boolean |
isAnnotated()
Check if this item has an annotation set. |
(package private) void |
onBeforeCommit(Transactional.Action action)
This method is called on each Transactional item and on
all items if the action is Transactional.Action.CREATE
or Transactional.Action.DELETE before a commit is issued to the database. |
void |
removeAnnotations()
Remove all annotations from this item, by deleting the annotation set. |
private void |
setBioAssaySet(BioAssaySet bioAssaySet)
Set the experiment. |
private void |
setDataCubeColumn(DataCubeColumn column)
|
void |
setDescription(String description)
Set the description for the item. |
void |
setName(String name)
Set the name of the item. |
void |
setNumFileSpots(int numSpots)
Set the number of spots that are stored in files. |
| Methods inherited from class net.sf.basedb.core.ChildItem |
|---|
getPluginPermissions |
| Methods inherited from class net.sf.basedb.core.BasicItem |
|---|
addUsingItems, addUsingItems, checkPermission, equals, getData, getDbControl, getId, getPermissions, getSessionControl, getUsingItems, getVersion, hashCode, hasPermission, isDetached, isInDatabase, isUsed, onAfterCommit, onAfterInsert, onRollback, setDbControl, setProjectDefaults, toString, toTransferable, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.sf.basedb.core.Identifiable |
|---|
getId, getVersion |
| Methods inherited from interface net.sf.basedb.core.AccessControlled |
|---|
checkPermission, getPermissions, hasPermission |
| Field Detail |
|---|
public static final Item TYPE
Item.BIOASSAY,
getType()| Constructor Detail |
|---|
BioAssay(BioAssayData data)
data - the data| Method Detail |
|---|
static BioAssay getNew(DbControl dc,
BioAssaySet bioAssaySet,
DataCubeColumn column)
throws PermissionDeniedException,
InvalidDataException,
BaseException
BioAssay item.
dc - The DbControl which will be used for
permission checking and database access.bioAssaySet - The bioassayset the bioassay belongs tocolumn - The data cube column where the bioassay should store it's data;
must be unique among bioassays in a bioassayset
BioAssay item
PermissionDeniedException - If the logged in user
doesn't have write permission for the experiment
InvalidDataException - If the bioassayset is null
BaseException - If there is an error
public static BioAssay getById(DbControl dc,
int id)
throws ItemNotFoundException,
PermissionDeniedException,
BaseException
BioAssay item when you know the id.
dc - The DbControl which will be used for
permission checking and database access.id - The id of the item to load
BioAssay item
ItemNotFoundException - If an item with the specified id
is not found
PermissionDeniedException - If the logged in user doesn't have
Permission.READ permission to the item
BaseException - If there is another error
public static ItemQuery<BioAssay> getQuery(BioAssaySet bioAssaySet)
throws InvalidDataException
bioAssaySet - The bioassayset to retreive bioassays for, null
is not allowed
ItemQuery object
InvalidDataException - If the parameter is null.public Item getType()
IdentifiableItem enumeration.
getType in interface Identifiablepublic String getName()
Nameable
getName in interface NameableString with the name of the item
public void setName(String name)
throws PermissionDeniedException,
InvalidDataException
NameableNameable.MAX_NAME_LENGTH constant.
setName in interface Nameablename - The new name for the item
PermissionDeniedException - If the logged in user doesn't
have write permission
InvalidDataException - If the name is null or longer
than specified by the Nameable.MAX_NAME_LENGTH constantpublic String getDescription()
Nameable
getDescription in interface NameableString with a description of the item
public void setDescription(String description)
throws PermissionDeniedException,
InvalidDataException
NameableNameable.MAX_DESCRIPTION_LENGTH constant.
setDescription in interface Nameabledescription - The new description for the item
PermissionDeniedException - If the logged in user doesn't
have write permission
InvalidDataException - If the description longer
than specified by the Nameable.MAX_DESCRIPTION_LENGTH constant
public AnnotationSet getAnnotationSet()
throws PermissionDeniedException,
BaseException
AnnotatableDbControl.commit() is
called. To check if an item has annotations without creating a new
annotation set use the Annotatable.isAnnotated() method.
getAnnotationSet in interface AnnotatableAnnotationSet
PermissionDeniedException - If the logged in user doesn't have
enough permissions
BaseException - If there is another errorpublic boolean isAnnotated()
Annotatable
isAnnotated in interface Annotatable
public void removeAnnotations()
throws PermissionDeniedException,
BaseException
Annotatable
removeAnnotations in interface AnnotatablePermissionDeniedException - If the logged in user doesn't have
write permission
BaseException - If there is another errorpublic Protocol getProtocol()
getProtocol in interface Annotatable
public Set<Annotatable> getAnnotatableParents()
throws BaseException
getAnnotatableParents in interface AnnotatableBaseException - If there is an error
void onBeforeCommit(Transactional.Action action)
throws BaseException
BasicItemTransactional item and on
all items if the action is Transactional.Action.CREATE
or Transactional.Action.DELETE before a commit is issued to the database.
If the subclass overrides this method it must also propagate the call
to the superclass, ie. super.onBeforeCommit(action).
onBeforeCommit in class BasicItem<BioAssayData>BaseException - If there is an errorTransactional,
Developer documentation: Transactions,
Developer documentation: Coding rules and guidelines for item classes
void initPermissions(int granted,
int denied)
throws BaseException
initPermissions in class ChildItem<BioAssayData>granted - Permissions that have been granted by the subclassdenied - Permissions that have been denied by the subclass
BaseException - If the permissions couldn't be initialisedSharedData getSharedParent()
getSharedParent in class ChildItem<BioAssayData>Permission getPermissionForWriteDeleteAndCreate()
getPermissionForWriteDeleteAndCreate in class ChildItem<BioAssayData>
public Experiment getExperiment()
throws PermissionDeniedException,
BaseException
Experiment object
PermissionDeniedException - If the logged in user doesn't have
read permission to the experiment
BaseException - If there is another error
public BioAssaySet getBioAssaySet()
throws PermissionDeniedException,
BaseException
BioAssaySet object
PermissionDeniedException - If the logged in user doesn't have
read permission to the bioassayset
BaseException - If there is another error
private void setBioAssaySet(BioAssaySet bioAssaySet)
throws PermissionDeniedException,
InvalidDataException
PermissionDeniedException
InvalidDataExceptionpublic RawDataType getRawDataType()
RawDataType objectpublic int getNumSpots()
public int getNumFileSpots()
public void setNumFileSpots(int numSpots)
numSpots - The number of spotspublic short getDataCubeNo()
getDataCubeLayerNo(),
getDataCubeColumnNo()public short getDataCubeLayerNo()
getDataCubeNo(),
getDataCubeColumnNo()public short getDataCubeColumnNo()
getDataCubeNo(),
getDataCubeLayerNo()
DataCubeColumn getDataCubeColumn()
throws PermissionDeniedException,
BaseException
DataCubeColumn object where this bioassay
store it's data.
PermissionDeniedException
BaseExceptionprivate void setDataCubeColumn(DataCubeColumn column)
public DynamicSpotQuery getSpotData()
BioAssaySet.getSpotData() method and adds a restriction
to the returned query.
DynamicSpotQuery objectBioAssaySet.getSpotData()public ItemQuery<BioAssay> getParents()
public ItemQuery<RawBioAssay> getRawBioAssays()
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||