|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mayo.bsi.ngsportal.shared.SampleInfo
public class SampleInfo
@author Gregory Dougherty
| Constructor Summary | |
|---|---|
SampleInfo(int id,
int sampleID,
String name,
String runName,
String appType,
String readType,
int lane,
int cycles,
boolean isControl,
boolean isIndexVendor,
String indexSeq,
String flowCell,
String rlimsID,
String sampleRLIMSID,
String parentID,
String captureKit,
String rlimsProject,
String species,
String diseaseType,
String[] fileLocation,
long fileSize,
String keepRequestor,
Date keepDate,
String dataFileName,
boolean isCim,
Boolean isBic)
Normal Constructor |
|
SampleInfo(int id,
String sampleRLIMSID,
String parentID,
String species,
String diseaseType)
No Sequenced Sample Info Constructor |
|
| Method Summary | |
|---|---|
void |
addNonPI(String nonPIName)
Add a non-PI to the list of non-PIs for this sample |
void |
addPI(String piName)
Add a PI to the list of PIs for this sample |
boolean |
equals(Object obj)
|
String |
getAppType()
|
String |
getCaptureKit()
|
int |
getCycles()
|
String |
getDataFileName()
|
String |
getDiseaseType()
|
String[] |
getFileLocation()
|
String |
getFileLocationAsString()
Take the array of 0 or more file locations, and turn it into a string |
long |
getFileSize()
|
String |
getFlowCell()
|
static SampleInfo |
getFromListByID(List<SampleInfo> theList,
int theID)
Determines if theList contains a Sample that has the sampleID theID |
static SampleInfo |
getFromListBySampleID(List<SampleInfo> theList,
int theID)
Determines if theList contains a Sample that has the sampleID theID |
int |
getID()
|
String |
getIndexSeq()
|
Date |
getKeepDate()
|
String |
getKeepRequestor()
|
int |
getLane()
|
String |
getName()
|
List<String> |
getNonPIs()
|
String |
getParentID()
|
List<String> |
getPIs()
|
List<QCResult> |
getQCResult()
|
String |
getReadType()
|
String |
getRlimsID()
|
String |
getRLIMSProject()
|
String |
getRunName()
|
int |
getSampleID()
|
String |
getSampleRlimsID()
|
String |
getSampleString()
Get a String that uniquely identifies a Sample (w/o any Sequenced Sample information) |
String |
getSpecies()
|
int |
hashCode()
|
Boolean |
isBic()
|
boolean |
isCim()
|
boolean |
isControl()
|
boolean |
isIndexVendor()
|
boolean |
isInList(List<SampleInfo> theList)
Determines if theList contains a Sample that has the same sampleID as this Sample |
boolean |
isQCPopulated()
|
static String |
makePI(String firstName,
String lastName)
Make a string representing a PI or non-PI |
boolean |
needsUpdate(String theSpecies,
String theDiseaseType)
Checks to see if any of the passed in values are meaningful and different from the existing values |
boolean |
needsUpdate(String theName,
String theAppType,
String theReadType,
int theLane,
int theCycles,
String theRlimsID,
String theCaptureKit,
String theRLIMSProject,
boolean newControl,
boolean isVendor,
String indexSequence,
String theFlowCell,
String theRunName,
boolean isCIM,
Boolean isBIC)
Checks to see if any of the passed in values are meaningful and different from the existing values |
static StringPair |
parsePI(String piName)
Parse a string representing a PI or non-PI, and turn it into a first name and last name |
boolean |
removeNonPI(String piName)
Remove a non-PI from the list of non-PIs for this sample |
boolean |
removePI(String piName)
Remove a PI from the list of PIs for this sample |
boolean |
seqNeedsUpdate(String theCaptureKit,
String theRLIMSProjectID)
Checks to see if any of the passed in values are meaningful and different from the existing values |
void |
setID(int id)
|
void |
setName(String name)
|
void |
setParentID(String parentID)
|
void |
setQCPopulated(boolean isQCPopulated)
|
void |
setQCResult(List<QCResult> qcResult)
Update the QC Result List. |
void |
setSampleID(int sampleID)
|
void |
setSampleRlimsID(String sampleRLIMSID)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SampleInfo(int id,
int sampleID,
String name,
String runName,
String appType,
String readType,
int lane,
int cycles,
boolean isControl,
boolean isIndexVendor,
String indexSeq,
String flowCell,
String rlimsID,
String sampleRLIMSID,
String parentID,
String captureKit,
String rlimsProject,
String species,
String diseaseType,
String[] fileLocation,
long fileSize,
String keepRequestor,
Date keepDate,
String dataFileName,
boolean isCim,
Boolean isBic)
id - DB Row ID of the Sequenced SamplesampleID - DB Row ID of the Samplename - Name of the SamplerunName - Name of the RunappType - Sequenced Sample application typereadType - Sequenced Sample read typelane - Sequenced Sample lanecycles - Sequenced Sample cyclesisControl - Was the Sequenced Sample a controlisIndexVendor - Was the Sequenced Sample's index from the VendorindexSeq - Sequenced Sample index, could be emptyflowCell - Sequenced Sample flow cellrlimsID - Sequenced Sample RLIMS IDsampleRLIMSID - Sample RLIMS Family ID, must never be empty or nullparentID - Sample RLIMS Parent ID, must never be empty or nullcaptureKit - The capture kit used to get the datarlimsProject - The RLIMS Project the sample was sequenced as part ofspecies - Sample SpeciesdiseaseType - Disease type of the sample, if anyfileLocation - Locations where associated data files are stored, if anyfileSize - Size of the Primary analysis data file, or 0 if nonekeepRequestor - Person who requested the data files be kept, or null if no such requestkeepDate - Date to keep Primary analysis files until, or null of not keeping filesdataFileName - Name of the data file that overrides the default data file nameisCim - True if sample was sequenced for CIM, false otherwiseisBic - True if was sequenced for BIC, false if not, NULL if not known
public SampleInfo(int id,
String sampleRLIMSID,
String parentID,
String species,
String diseaseType)
id - DB Row ID of the SamplesampleRLIMSID - Sample RLIMS Family ID, must never be empty or nullparentID - Sample RLIMS Parent ID, must never be empty or nullspecies - Sample SpeciesdiseaseType - Disease type of the sample, if any| Method Detail |
|---|
public static final SampleInfo getFromListBySampleID(List<SampleInfo> theList,
int theID)
theList - List to check. Will return null if list is null or emptytheID - Sample ID we're looking for
public static final SampleInfo getFromListByID(List<SampleInfo> theList,
int theID)
theList - List to check. Will return null if list is null or emptytheID - ID we're looking for
public static final String makePI(String firstName,
String lastName)
firstName - The person's first name. Will use "null" if null, "" if emptylastName - The person's last name. Will use "null" if null, "" if empty
public static final StringPair parsePI(String piName)
piName - The person's last name. Will use "null" if null, "" if empty
public boolean isInList(List<SampleInfo> theList)
theList - List to check. Will return false if list is null or empty
public boolean needsUpdate(String theSpecies,
String theDiseaseType)
theSpecies - The species of the sampletheDiseaseType - The diseaseType of the sample, or null if have nothing
public boolean seqNeedsUpdate(String theCaptureKit,
String theRLIMSProjectID)
theCaptureKit - The capture kit of the sampletheRLIMSProjectID - The RLIMS Project ID of the sample
public boolean needsUpdate(String theName,
String theAppType,
String theReadType,
int theLane,
int theCycles,
String theRlimsID,
String theCaptureKit,
String theRLIMSProject,
boolean newControl,
boolean isVendor,
String indexSequence,
String theFlowCell,
String theRunName,
boolean isCIM,
Boolean isBIC)
theName - The name of the sampletheAppType - The name of the type of sampletheReadType - The name of the read typetheLane - The lane numbertheCycles - The number of cyclestheRlimsID - The value of the RLIMS IDtheCaptureKit - The Capture Kit usedtheRLIMSProject - The RLIMS Project the sample was sequenced fornewControl - Whether the sample is a controlisVendor - Whether the sampleID is vendor supplied (only relevant if
indexSequence is NOT null)indexSequence - The sequence fragment tested (null if not an indexed sample)theFlowCell - The flowCell the sequencing was done intheRunName - The name of the run the sample belongs toisCIM - True if was sequenced for CIM, false if notisBIC - True if was sequenced for BIC, false if not, NULL if don't know
public final int getID()
public final void setID(int id)
id - the id to setpublic final int getSampleID()
public final void setSampleID(int sampleID)
sampleID - the sampleID to setpublic final List<String> getPIs()
public final void addPI(String piName)
piName - The name of the PI, usually [Last], [First]public final boolean removePI(String piName)
piName - The name of the PI, usually [Last], [First]
public final List<String> getNonPIs()
public final void addNonPI(String nonPIName)
nonPIName - The name of the non-PI, usually [Last], [First]public final boolean removeNonPI(String piName)
piName - The name of the non-PI, usually [Last], [First]
public final String getName()
public final void setName(String name)
name - the name to setpublic final String getRunName()
public final String getAppType()
public final String getReadType()
public final int getLane()
public final int getCycles()
public final boolean isControl()
public boolean isCim()
public Boolean isBic()
public final boolean isIndexVendor()
public final String getIndexSeq()
public final String getFlowCell()
public final String getDataFileName()
public final String getRlimsID()
public final String getSampleRlimsID()
public final void setSampleRlimsID(String sampleRLIMSID)
sampleRLIMSID - the sampleRLIMSID to setpublic String getParentID()
public final void setParentID(String parentID)
parentID - the parentID to setpublic final String getCaptureKit()
public final String getRLIMSProject()
public final String getSpecies()
public final String getDiseaseType()
public final String[] getFileLocation()
public final String getFileLocationAsString()
public final long getFileSize()
public final String getKeepRequestor()
public final Date getKeepDate()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Objectpublic String getSampleString()
public List<QCResult> getQCResult()
public void setQCResult(List<QCResult> qcResult)
qcResult - New List to usepublic boolean isQCPopulated()
public void setQCPopulated(boolean isQCPopulated)
isQCPopulated - New value for isQCPopulated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||