Ejemplo n.º 1
0
 public static IntensityStats Load(string fullFileName)
 {
     IntensityStats stats = new IntensityStats();
     using (TextReader reader = new StreamReader(fullFileName))
     {
         stats = new IntensityStats
                     {
                         Mean = Convert.ToSingle(reader.ReadLine()),
                         Med = Convert.ToSingle(reader.ReadLine()),
                         Min = Convert.ToSingle(reader.ReadLine()),
                         Max = Convert.ToSingle(reader.ReadLine()),
                         P90 = Convert.ToSingle(reader.ReadLine()),
                         Dev = Convert.ToSingle(reader.ReadLine())
                     };
     }
     return stats;
 }
Ejemplo n.º 2
0
		public static void SaveIntensityStats(int cycleIndex, int laneIndex, int tileIndex, int channelIndex,
											  string runFolder, IntensityStats stats)
		{
			string directory = Path.Combine(Path.Combine(runFolder, "Processed"), "Intensity");
			EnsureDirectoryExists(new DirectoryInfo(directory));
			string fileName = GetIntensityFileName(cycleIndex, laneIndex, tileIndex, channelIndex);
			string filePath = Path.Combine(directory, fileName);
			stats.Save(filePath);
		}