Package bacnet.datamodel.expdesign
Class BioCondition
java.lang.Object
bacnet.datamodel.expdesign.BioCondition
- All Implemented Interfaces:
Serializable
This class is used for the different bioconds declared in the experiment
It contains the biocond name, and all the related data.
IMPORTANT, MAJ 04102011 : WT data are only used as indication on experimental design, in all
analysis if we want WT we need to add it in the Experiment
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncompare
(BioCondition bioCond2, boolean calcData) Create a BioCondition containing the different data for comparing this BioCondition to bioCond2boolean
boolean
boolean
Get all availableBioCondition
names by reading the text fileExperiment.INCLUDE_COND_PATH
static ArrayList<BioCondition>
Return all BioCondition availablestatic ArrayList<BioCondition>
Return all BioCondition availablestatic ArrayList<BioCondition>
Return all BioCondition availablestatic BioCondition
getBioCondition
(String bioCondName) From a biological condition name load the corresponding BioCondition objectstatic BioCondition
getBioCondition
(String bioCondName, boolean modelProvider) From a biological condition name, get from the ModelProvider the corresponding BioCondition object
If not available it will load them for the hard driveGet every names of the Comparison which can be found:
Tiling arrays Gene Expression arrays ExpressionMatrixReturn a list of all Comparisons: bioCondName vs comparisons.get(i)getDate()
int
Put all ExpressionData in a listReturn corresponding Genome given by this.genomeName
Load it if necessarygetMedia()
getName()
Put all OmicsData in a listGet all genomes associated to a proteomics datasetPut all OmicsData in a listGet all genomes associated to a transcriptomes datasetgetTime()
Put all TranscriptomeData in a listGet all genomes associated to a transcriptomes datasetboolean
isNoData()
boolean
static BioCondition
Read compressed, serialized data with a FileInputStream.static String[]
Parse a Comparison name, extracting leftBioCondition and rightBioconditionvoid
Prompt the user for a filename, and save the scribble in that file.void
setAntiComparisons
(ArrayList<String> antiComparisons) void
setArrayExpressId
(String arrayExpressId) void
setArrayExpressTechnoId
(String arrayExpressTechnoId) void
setComment
(String comment) void
setComparisons
(ArrayList<String> comparisons) void
void
setExperienceNb
(int experienceNb) void
setGeneExprs
(ArrayList<GeneExpression> geneExprs) void
setGenomeName
(String genomeName) void
setGenomeUsed
(String genomeUsed) void
void
setLinkedBioCondition
(ArrayList<String> linkedBioCondition) void
setLocalization
(ArrayList<String> localization) void
setMatrices
(ArrayList<ExpressionMatrix> matrices) void
void
setMediaGrowthProperties
(ArrayList<String> mediaGrowthProperties) void
void
void
setNGSSeqs
(ArrayList<NGS> rnaSeqs) void
setNoData
(boolean noData) void
void
setProteomes
(ArrayList<ProteomicsData> proteomes) void
setReference
(String reference) void
setStudyName
(String studyName) void
setTemperature
(String temperature) void
setTilings
(ArrayList<Tiling> tilings) void
void
setTypeDataContained
(TreeSet<OmicsData.TypeData> typeDataContained) void
setWildType
(boolean wildType)
-
Field Details
-
SEPARATOR
BioConditoon separator for comparisons
equal to " vs "
-
-
Constructor Details
-
BioCondition
public BioCondition() -
BioCondition
-
-
Method Details
-
containTranscriptomes
public boolean containTranscriptomes() -
containRNASeq
public boolean containRNASeq() -
containProteomes
public boolean containProteomes() -
getExpressionData
Put all ExpressionData in a list- Returns:
-
getTranscriptomesData
Put all TranscriptomeData in a list- Returns:
-
getTranscriptomesGenomes
Get all genomes associated to a transcriptomes dataset- Returns:
-
getRNASeqGenomes
Get all genomes associated to a transcriptomes dataset- Returns:
-
getOmicsData
Put all OmicsData in a list- Returns:
-
getProteomicsData
Put all OmicsData in a list- Returns:
-
getProteomeGenomes
Get all genomes associated to a proteomics dataset- Returns:
-
getComparisonDataNames
Get every names of the Comparison which can be found:
- Tiling arrays
- Gene Expression arrays
- ExpressionMatrix
- Returns:
- a list of all the data
-
getGenome
Return corresponding Genome given by this.genomeName
Load it if necessary- Returns:
-
getComparisonNames
Return a list of all Comparisons: bioCondName vs comparisons.get(i)- Returns:
-
compare
Create a BioCondition containing the different data for comparing this BioCondition to bioCond2- Parameters:
bioCond2
-- Returns:
- Throws:
IOException
-
getBioCondition
From a biological condition name load the corresponding BioCondition object- Parameters:
bioCondName
-- Returns:
-
getBioCondition
From a biological condition name, get from the ModelProvider the corresponding BioCondition object
If not available it will load them for the hard drive- Parameters:
bioCondName
-true
- if you want to get BioCondition from pre-loaded BioCondition- Returns:
-
parseName
Parse a Comparison name, extracting leftBioCondition and rightBiocondition- Parameters:
name
-- Returns:
- {leftBioCond,rightBioCond}
-
getAllBioConditionNames
Get all availableBioCondition
names by reading the text fileExperiment.INCLUDE_COND_PATH
- Returns:
-
getAllBioConditions
Return all BioCondition available- Returns:
-
getAllPublishedBioConditions
Return all BioCondition available- Returns:
-
getAllUnPublishedBioConditions
Return all BioCondition available- Returns:
-
load
Read compressed, serialized data with a FileInputStream. Uncompress that data with a GZIPInputStream. Deserialize the vector of lines with a ObjectInputStream. Replace current data with new data, and redraw everything. -
save
Prompt the user for a filename, and save the scribble in that file. Serialize the vector of lines with an ObjectOutputStream. Compress the serialized objects with a GZIPOutputStream. Write the compressed, serialized data to a file with a FileOutputStream. Don't forget to flush and close the stream. -
getName
-
setName
-
getGenomeName
-
setGenomeName
-
getDate
-
setDate
-
getExperienceNb
public int getExperienceNb() -
setExperienceNb
public void setExperienceNb(int experienceNb) -
isWildType
public boolean isWildType() -
setWildType
public void setWildType(boolean wildType) -
getComment
-
setComment
-
getGeneExprs
-
setGeneExprs
-
getTilings
-
setTilings
-
getMatrices
-
setMatrices
-
getArrayExpressId
-
setArrayExpressId
-
getArrayExpressTechnoId
-
isNoData
public boolean isNoData() -
setNoData
public void setNoData(boolean noData) -
setArrayExpressTechnoId
-
getGenomeUsed
-
setGenomeUsed
-
getMutant
-
setMutant
-
getMediaGrowthProperties
-
setMediaGrowthProperties
-
getGrowth
-
setGrowth
-
getTemperature
-
setTemperature
-
getTime
-
setTime
-
getMedia
-
setMedia
-
getLinkedBioCondition
-
setLinkedBioCondition
-
getComparisons
-
setComparisons
-
getTypeDataContained
-
getnTerms
-
getNGSSeqs
-
setNGSSeqs
-
setnTerms
-
getProteomes
-
setProteomes
-
setTypeDataContained
-
getReference
-
setReference
-
getStudyName
-
setStudyName
-
getAntiComparisons
-
setAntiComparisons
-
getLocalization
-
setLocalization
-