Пример #1
0
 public FoldChangeResult(double confidenceLevel, double adjustedPValue, LinearFitResult linearFitResult)
     : this()
 {
     ConfidenceLevel = confidenceLevel;
     LinearFit = linearFitResult;
     AdjustedPValue = adjustedPValue;
 }
Пример #2
0
 public static IDictionary<string, LinearFitResult> ReadExpectedResults(Type type, string resourceName)
 {
     var result = new Dictionary<string, LinearFitResult>();
     using (var reader = GetTextReaderForManifestResource(type, resourceName))
     {
         var csvReader = new DsvFileReader(reader, ',');
         while (null != csvReader.ReadLine())
         {
             string protein = csvReader.GetFieldByName("Protein");
             var linearFitResult = new LinearFitResult(Convert.ToDouble(csvReader.GetFieldByName("log2FC"), CultureInfo.InvariantCulture))
                 .SetStandardError(Convert.ToDouble(csvReader.GetFieldByName("SE"), CultureInfo.InvariantCulture))
                 .SetTValue(Convert.ToDouble(csvReader.GetFieldByName("Tvalue"), CultureInfo.InvariantCulture))
                 .SetDegreesOfFreedom(Convert.ToInt32(csvReader.GetFieldByName("DF"), CultureInfo.InvariantCulture))
                 .SetPValue(Convert.ToDouble(csvReader.GetFieldByName("pvalue"), CultureInfo.InvariantCulture));
             result.Add(protein, linearFitResult);
         }
     }
     return result;
 }
Пример #3
0
 public GroupComparisonResult(GroupComparisonSelector selector, int replicateCount, LinearFitResult linearFitResult)
 {
     Selector = selector;
     LinearFitResult = linearFitResult;
     ReplicateCount = replicateCount;
 }