예제 #1
0
        public MSScanFromTextFileRun(string filePath)
        {
            DatasetFileOrDirectoryPath = Path.GetFullPath(filePath);

            MSFileType = Globals.MSFileType.Ascii;
            var baseFilename = Path.GetFileName(DatasetFileOrDirectoryPath);

            DatasetName          = baseFilename.Substring(0, baseFilename.LastIndexOf('.'));
            DatasetDirectoryPath = Path.GetDirectoryName(DatasetFileOrDirectoryPath);
            XYData         = new XYData();
            CurrentScanSet = new Core.ScanSet(0);    //
        }
예제 #2
0
        public override XYData GetMassSpectrum(Core.ScanSet scanSet, double minMZ, double maxMZ)
        {
            XYData xyData;

            try
            {
                xyData = loadDataFromFile(DatasetFileOrDirectoryPath);
            }
            catch (Exception ex)
            {
                throw new IOException("There was an error reading file " + Utilities.DiagnosticUtilities.GetFullPathSafe(DatasetFileOrDirectoryPath) + "\n\n" + ex.Message);
            }

            xyData = xyData.TrimData(minMZ, maxMZ);

            return(xyData);
        }
예제 #3
0
 public override XYData GetMassSpectrum(Core.ScanSet scanset)
 {
     return(XYData);
 }