|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.BasicItem<D> net.sf.basedb.core.OwnedItem<D> net.sf.basedb.core.SharedItem<D> net.sf.basedb.core.CommonItem<D> net.sf.basedb.core.AnnotatedItem<ScanData> net.sf.basedb.core.Scan
public class Scan
A scan represents the scanning of a Hybridization
by
some scanner. A single hybridization may be scanned multiple
times by the same or different scanner.
A single scan normally produces one or more Image
:s
which are analysed by some software to produce a RawBioAssay
.
Field Summary | |
---|---|
private boolean |
protocolHasBeenSet
|
private boolean |
scannerHasBeenSet
|
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 | |
---|---|
Scan(ScanData data)
|
Method Summary | |
---|---|
long |
countImages()
Counts all images that have been added to this scan. |
long |
countRawBioAssays()
Counts all raw bioassays that have been created from this scan. |
Set<Annotatable> |
getAnnotatableParents()
Get the hybridization. |
ArrayDesign |
getArrayDesign()
Get the array design by connected to this scan following the hybridization to the array slide to the array batch to the array design. |
static Scan |
getById(DbControl dc,
int id)
Get a Scan object when you know the id. |
Date |
getEntryDate()
Get the date that the item was registered in the database. |
Hybridization |
getHybridization()
Get the Hybridization this scan is created from. |
ItemQuery<Image> |
getImages()
Get a query that returns all images for this scan. |
static Scan |
getNew(DbControl dc,
Hybridization hybridization)
Create a new Scan item. |
Protocol |
getProtocol()
Get the Protocol used to create this scan. |
static ItemQuery<Scan> |
getQuery()
Get a query that returns scans. |
ItemQuery<RawBioAssay> |
getRawBioAssays()
Get a query that returns all raw bioassays created from this scan. |
Hardware |
getScanner()
Get the Hardware (scanner) used to create this scan. |
Item |
getType()
Get the type of item represented by the object. |
Set<ItemProxy> |
getUsingItems()
Get all: RawBioAssay :s created from this scan
|
boolean |
isUsed()
Check if: A RawBioAssay has been created from this scan
|
Image |
newImage()
Create a new Image for this scan. |
RawBioAssay |
newRawBioAssay(RawDataType rawDataType)
Deprecated. Use RawBioAssay.getNew(DbControl, Platform, RawDataType)
or RawBioAssay.getNew(DbControl, PlatformVariant, RawDataType) instead |
void |
setHybridization(Hybridization hybridization)
Set the ArraySlide this hybridization is using. |
(package private) void |
setProjectDefaults(Project activeProject)
Set scanner and protocol from project default settings. |
void |
setProtocol(Protocol protocol)
Set the Protocol used to create this scan. |
void |
setScanner(Hardware scanner)
Set the Hardware (scanner) used to create this scan. |
Methods inherited from class net.sf.basedb.core.AnnotatedItem |
---|
getAnnotationSet, isAnnotated, removeAnnotations, toTransferable |
Methods inherited from class net.sf.basedb.core.CommonItem |
---|
getDescription, getName, isRemoved, setDescription, setName, setRemoved, toTransferable |
Methods inherited from class net.sf.basedb.core.SharedItem |
---|
getItemKey, getProjectKey, initPermissions, isShared, onBeforeCommit, setItemKey, setProjectKey, toTransferable |
Methods inherited from class net.sf.basedb.core.OwnedItem |
---|
getOwner, isOwner, setOwner, takeOwnership, toTransferable |
Methods inherited from class net.sf.basedb.core.BasicItem |
---|
addUsingItems, addUsingItems, checkPermission, equals, getData, getDbControl, getId, getPermissions, getPluginPermissions, getSessionControl, getVersion, hashCode, hasPermission, isDetached, isInDatabase, onAfterCommit, onAfterInsert, onRollback, setDbControl, 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 |
Methods inherited from interface net.sf.basedb.core.Ownable |
---|
getOwner, isOwner, setOwner, takeOwnership |
Field Detail |
---|
public static final Item TYPE
Item.SCAN
,
getType()
private boolean scannerHasBeenSet
private boolean protocolHasBeenSet
Constructor Detail |
---|
Scan(ScanData data)
Method Detail |
---|
public static Scan getNew(DbControl dc, Hybridization hybridization) throws PermissionDeniedException, BaseException
Scan
item.
dc
- The DbControl
which will be used for
permission checking and database accesshybridization
- The hybridization the scan originates from
Scan
item
PermissionDeniedException
- If the logged in user doesn't
have use permission for the hybridization
BaseException
- If there is an errorpublic static Scan getById(DbControl dc, int id) throws ItemNotFoundException, PermissionDeniedException, BaseException
Scan
object 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
Scan
item
ItemNotFoundException
- If an item with the specified id is
not found
PermissionDeniedException
- If the logged in user doesn't
have read permission to the item
BaseException
- If there is another errorpublic static ItemQuery<Scan> getQuery()
ItemQuery
objectpublic Item getType()
Identifiable
Item
enumeration.
getType
in interface Identifiable
public Set<Annotatable> getAnnotatableParents() throws BaseException
getAnnotatableParents
in interface Annotatable
BaseException
- If there is an errorpublic Date getEntryDate()
Registered
getEntryDate
in interface Registered
public boolean isUsed() throws BaseException
RawBioAssay
has been created from this scan
isUsed
in class BasicItem<ScanData>
BaseException
- If not able to tell if item is used or not.BasicItem.getUsingItems()
public Set<ItemProxy> getUsingItems()
RawBioAssay
:s created from this scan
getUsingItems
in class BasicItem<ScanData>
BasicItem.addUsingItems(Set, Item, org.hibernate.Query)
void setProjectDefaults(Project activeProject) throws BaseException
setProjectDefaults
in class BasicItem<ScanData>
activeProject
- The currently active project
BaseException
public Hybridization getHybridization() throws PermissionDeniedException, BaseException
Hybridization
this scan is created from. A scan
must always have a hybridization.
Hybridization
item
PermissionDeniedException
- If the logged in user doesn't have
read permission for the hybridization
BaseException
- If there is another error.public void setHybridization(Hybridization hybridization) throws InvalidDataException, PermissionDeniedException
ArraySlide
this hybridization is using.
hybridization
- The hybridization, null is not allowed
InvalidDataException
- If the hybridization is null
PermissionDeniedException
- If the logged in user doesn't have
write permission for the scan use permission for the hybridization
BaseException
- If there is another errorpublic Hardware getScanner() throws PermissionDeniedException, BaseException
Hardware
(scanner) used to create this scan.
Hardware
item or null if not known
PermissionDeniedException
- If the logged in user doesn't have
read permission for the scanner
BaseException
- If there is another error.public void setScanner(Hardware scanner) throws PermissionDeniedException
Hardware
(scanner) used to create this scan.
scanner
- The scanner or null if not known
PermissionDeniedException
- If the logged in user doesn't have
write permission for the scan use permission for the scanner
BaseException
- If there is another errorpublic Protocol getProtocol() throws PermissionDeniedException, BaseException
Protocol
used to create this scan.
getProtocol
in interface Annotatable
getProtocol
in class AnnotatedItem<ScanData>
Protocol
item or null if not known
PermissionDeniedException
- If the logged in user doesn't have
read permission for the protocol
BaseException
- If there is another error.public void setProtocol(Protocol protocol) throws PermissionDeniedException
Protocol
used to create this scan.
protocol
- The protocol or null if not known
PermissionDeniedException
- If the logged in user doesn't have
write permission for the scan use permission for the protocol
BaseException
- If there is another errorpublic ArrayDesign getArrayDesign() throws PermissionDeniedException, BaseException
PermissionDeniedException
- If the logged in user doesn't have
read permission for the array design
BaseException
- If there is another error.public RawBioAssay newRawBioAssay(RawDataType rawDataType) throws PermissionDeniedException, BaseException
RawBioAssay.getNew(DbControl, Platform, RawDataType)
or RawBioAssay.getNew(DbControl, PlatformVariant, RawDataType)
instead
RawBioAssay
from this scan.
rawDataType
- The raw data type of the new bioassay
RawBioAssay
item
PermissionDeniedException
- If the logged in user doesn't have
use permission for the scan
BaseException
- If there is another errorpublic ItemQuery<RawBioAssay> getRawBioAssays()
ItemQuery
objectpublic long countRawBioAssays() throws BaseException
BaseException
- If the raw bioassays couldn't be counted.public Image newImage() throws PermissionDeniedException, BaseException
Image
for this scan.
Image
item
PermissionDeniedException
- If the logged in user doesn't have
write permission
BaseException
- If there is another errorpublic ItemQuery<Image> getImages()
ItemQuery
objectpublic long countImages() throws BaseException
BaseException
- If the images couldn't be created.
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |