Esempio n. 1
0
        /// <summary>
        /// When a new analysis is loaded, this method will update the input summary statistics panel.
        /// </summary>
        /// <param name="csvFile">Filename of the CSV file</param>
        private void UpdateInputStatistics(string csvFile)
        {
            // Need to be able to either read from CSV file or read from application
            InputStatistics stats = new InputStatistics(csvFile);

            // Update total number of reads
            this.totalReadsValue.Text = " " + stats.NumberOfReads.ToString();

            this.readLengthMinValue.Text  = String.Format("{0:F1}", stats.ReadLengthMin);
            this.readLengthValue.Text     = String.Format("{0:F1}", stats.ReadLengthMax);
            this.readLengthMeanValue.Text = String.Format("{0:F1}", stats.ReadLengthMean);

            this.readGcContentMinValue.Text  = String.Format("{0:F1}", stats.ReadGcContentMin);
            this.readGcContentMaxValue.Text  = String.Format("{0:F1}", stats.ReadGcContentMax);
            this.readGcContentMeanValue.Text = String.Format("{0:F1}", stats.ReadGcContentMean);

            this.basePhredMinValue.Text  = String.Format("{0:F1}", stats.BasePhredScoreMin);
            this.basePhredMaxValue.Text  = String.Format("{0:F1}", stats.BasePhredScoreMax);
            this.basePhredMeanValue.Text = String.Format("{0:F1}", stats.BasePhredScoreMean);

            this.readPhredMinValue.Text  = String.Format("{0:F1}", stats.ReadPhredScoreMin);
            this.readPhredMaxValue.Text  = String.Format("{0:F1}", stats.ReadPhredScoreMax);
            this.readPhredMeanValue.Text = String.Format("{0:F1}", stats.ReadPhredScoreMean);
        }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     telemetry       = GameObject.Find("Telemetry");
     inputStatistics = telemetry.GetComponent <InputStatistics>();
 }