Package bacnet.scripts.database
Class ComparisonsCreation
java.lang.Object
bacnet.scripts.database.ComparisonsCreation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExpressionMatrixcalc(Comparison comp) Run the comparison by calculating statistical parameters given in tests ArrayListstatic voidcalcFilterAndSave(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 ExpressionMatrixcalculateCompMatrix(ArrayList<String> comparisons, ArrayList<String> genomeElements, boolean tiling, boolean geneExpr) Calculate a list of comparisonsstatic voidcreateAllCompMatrix(ArrayList<String> compList) Go through all comparisons and create for eachTilingandGenExpressiondifferent matrices giving the number of genes, Srna and asRNA overexpressed and underexpressedstatic voidcreateLogFCMatrix(Experiment exp, Genome genome) Create Database.logFCMatrix by regrouping every logFC values for genes, sRNAs, asRNAs, and cisRegs in everyBioConditiongivenExperimentstatic voidcreateStatMatrix(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 ExpressionMatrixreorganizeMatrix(ExpressionMatrix compMatrix, ArrayList<StatTest> tests, Comparison comp) Reorder headers of the comparison Matrix to group GenExpression and Tiling results coming from the same comparisonstatic voidsetAllComparisonStreamData(ArrayList<String> allComp) For each Comparison calculates corresponding TranscriptomeData, and save itstatic voidsummarizeDiffExpr(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 voidCreate 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 eachTilingandGenExpressiondifferent 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 everyBioConditiongivenExperiment- 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"
-