Package bacnet.scripts.database
Class ComparisonsCreation
java.lang.Object
bacnet.scripts.database.ComparisonsCreation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExpressionMatrix
calc
(Comparison comp) Run the comparison by calculating statistical parameters given in tests ArrayListstatic void
calcFilterAndSave
(ArrayList<String> elements, String ID, String comparison, ArrayList<Filter> filters, boolean tiling, boolean geneExpression) Calculate a comparison, filter the results, and save ExpressionMatrix and list of elements up-regulated and down-regulatedstatic ExpressionMatrix
calculateCompMatrix
(ArrayList<String> comparisons, ArrayList<String> genomeElements, boolean tiling, boolean geneExpr) Calculate a list of comparisonsstatic void
createAllCompMatrix
(ArrayList<String> compList) Go through all comparisons and create for eachTiling
andGenExpression
different matrices giving the number of genes, Srna and asRNA overexpressed and underexpressedstatic void
createLogFCMatrix
(Experiment exp, Genome genome) Create Database.logFCMatrix by regrouping every logFC values for genes, sRNAs, asRNAs, and cisRegs in everyBioCondition
givenExperiment
static void
createStatMatrix
(Experiment exp, Genome genome) Create Database.statTable by calculating stat values for genes, sRNAs, and asRNAs in every BioCondition
For genes we use FDRBY calculated from GebneExpression array
For sRNAs and asRNAs we use TSTUDENTTILING for Tiling arraystatic ExpressionMatrix
reorganizeMatrix
(ExpressionMatrix compMatrix, ArrayList<StatTest> tests, Comparison comp) Reorder headers of the comparison Matrix to group GenExpression and Tiling results coming from the same comparisonstatic void
setAllComparisonStreamData
(ArrayList<String> allComp) For each Comparison calculates corresponding TranscriptomeData, and save itstatic void
summarizeDiffExpr
(Experiment exp, Genome genome) Create an array :
Column = comparison Row = Gene, Srna or Asrna Cell = "+" if a specific gene has been detected over-expressed, and "-" if under-expressed
Save it in : Comparison.PATH_DIFF_LISTS+".txt"static void
Create an array :
Row = comparison Column = Number of gene, Srna Asrna over or under-expressed
Save it in : Comparison.PATH_DIFF_LISTS+".txt"
-
Constructor Details
-
ComparisonsCreation
public ComparisonsCreation()
-
-
Method Details
-
createAllCompMatrix
Go through all comparisons and create for eachTiling
andGenExpression
different matrices giving the number of genes, Srna and asRNA overexpressed and underexpressed- Parameters:
compList
-
-
calcFilterAndSave
public static void calcFilterAndSave(ArrayList<String> elements, String ID, String comparison, ArrayList<Filter> filters, boolean tiling, boolean geneExpression) Calculate a comparison, filter the results, and save ExpressionMatrix and list of elements up-regulated and down-regulated- Parameters:
elements
-ID
-comparison
-filter
-geneExpression
-
-
calculateCompMatrix
public static ExpressionMatrix calculateCompMatrix(ArrayList<String> comparisons, ArrayList<String> genomeElements, boolean tiling, boolean geneExpr) Calculate a list of comparisons- Parameters:
comparisons
-genomeElements
-tiling
-geneExpr
-- Returns:
-
reorganizeMatrix
public static ExpressionMatrix reorganizeMatrix(ExpressionMatrix compMatrix, ArrayList<StatTest> tests, Comparison comp) Reorder headers of the comparison Matrix to group GenExpression and Tiling results coming from the same comparison- Parameters:
compMatrix
-tests
-comp
-- Returns:
-
calc
Run the comparison by calculating statistical parameters given in tests ArrayList- Returns:
- compMatrix containing the different statistical values
- Throws:
Exception
-
setAllComparisonStreamData
For each Comparison calculates corresponding TranscriptomeData, and save it- Parameters:
allComp
-
-
createLogFCMatrix
Create Database.logFCMatrix by regrouping every logFC values for genes, sRNAs, asRNAs, and cisRegs in everyBioCondition
givenExperiment
- Parameters:
exp
- list of BioConditiongenome
- current genome with list of genes, sRNAs, asRNAs and cisRegs
-
createStatMatrix
Create Database.statTable by calculating stat values for genes, sRNAs, and asRNAs in every BioCondition
For genes we use FDRBY calculated from GebneExpression array
For sRNAs and asRNAs we use TSTUDENTTILING for Tiling array -
summarizeDiffExpr
Create an array :
- Column = comparison
- Row = Gene, Srna or Asrna
- Cell = "+" if a specific gene has been detected over-expressed, and "-" if under-expressed
Save it in : Comparison.PATH_DIFF_LISTS+".txt" -
summarizeDiffLists
Create an array :
- Row = comparison
- Column = Number of gene, Srna Asrna over or under-expressed
Save it in : Comparison.PATH_DIFF_LISTS+".txt"
-