Exemple #1
0
        public RawReader(string argFullPath, enumRawDataType argFileType)
        {
            //ListenServr.StartNamedPipeServer();
            Thread PipeServer = new Thread(StartNamedPipeServer);

            PipeServer.Start();
            _fullFilePath = argFullPath;
            _fileType     = argFileType;

            GlypIDReader = new Process();
            //GlypIDReader.OutputDataReceived += new DataReceivedEventHandler(
            //(s, e) =>
            //{
            //    Desc += e.Data + "\n";
            //}
            //);
            startInfo          = new ProcessStartInfo();
            startInfo.FileName = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) + "\\GlypIDWrapper.exe";
            startInfo.RedirectStandardOutput = true;
            startInfo.RedirectStandardInput  = true;
            startInfo.RedirectStandardError  = true;
            startInfo.UseShellExecute        = false;
            startInfo.CreateNoWindow         = true;
            GlypIDReader.StartInfo           = startInfo;
            GlypIDReader.Start();
        }
Exemple #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="argFullPath"></param>
 /// <param name="argFileType">raw or mzxml</param>
 public RawReader(string argFullPath, string argFileType)
 {
     //ListenServr.StartNamedPipeServer();
     Thread PipeServer = new Thread(StartNamedPipeServer);
     PipeServer.Start();
     _fullFilePath = argFullPath;
     if (argFileType.ToLower() == "raw")
     {
         _fileType = enumRawDataType.raw;
     }
     else
     {
         _fileType = enumRawDataType.mzxml;
     }
     GlypIDReader = new Process();
     //GlypIDReader.OutputDataReceived += new DataReceivedEventHandler(
     //(s, e) =>
     //{
     //    Desc += e.Data + "\n";
     //}
     //);
     startInfo = new ProcessStartInfo();
     startInfo.FileName = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) + "\\GlypIDWrapper.exe";
     startInfo.RedirectStandardOutput = true;
     startInfo.RedirectStandardInput = true;
     startInfo.RedirectStandardError = true;
     startInfo.UseShellExecute = false;
     startInfo.CreateNoWindow = true;
     GlypIDReader.StartInfo = startInfo;
     GlypIDReader.Start();
 }
Exemple #3
0
        public RawReader(string argFullPath, enumRawDataType argFileType, double argSingleToNoise, double argPeakBackground, double argPeptideBackground, short argMaxCharge)
        {
            Thread PipeServer = new Thread(StartNamedPipeServer);

            PipeServer.Start();
            _fullFilePath              = argFullPath;
            _fileType                  = argFileType;
            _singleToNoiseRatio        = argSingleToNoise;
            _peakBackgroundRatio       = argPeakBackground;
            _peptideMinBackgroundRatio = argPeptideBackground;
            _maxCharge                 = argMaxCharge;

            GlypIDReader = new Process();
            //GlypIDReader.OutputDataReceived += new DataReceivedEventHandler(
            //    (s, e) =>
            //    {
            //        Desc += e.Data + "\n";
            //    }
            //);
            startInfo          = new ProcessStartInfo();
            startInfo.FileName = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) + "\\GlypIDWrapper.exe";
            startInfo.RedirectStandardOutput = true;
            startInfo.RedirectStandardError  = true;
            startInfo.UseShellExecute        = false;
            startInfo.CreateNoWindow         = true;

            //PipeServerThread = new Thread(StartNamePipeServer);
            //PipeServerThread.Start();
            //PipeServerThread.Join();
        }
Exemple #4
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="argFullPath"></param>
        /// <param name="argFileType"></param>
        public RawReader(string argFullPath, enumRawDataType argRawType)
        {
            _fullFilePath = argFullPath;

            if (argRawType == enumRawDataType.raw)
            {
                _fileType = "raw";
                Raw = new GlypID.Readers.clsRawData(_fullFilePath, GlypID.Readers.FileType.FINNIGAN);
            }
            else
            {
                _fileType = "mzxml";
                Raw = new GlypID.Readers.clsRawData(_fullFilePath, GlypID.Readers.FileType.MZXMLRAWDATA);
            }
        }
Exemple #5
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="argFullPath"></param>
        /// <param name="argFileType"></param>
        public RawReader(string argFullPath, enumRawDataType argRawType)
        {
            _fullFilePath = argFullPath;

            if (argRawType == enumRawDataType.raw)
            {
                _fileType = "raw";
                Raw       = new GlypID.Readers.clsRawData(_fullFilePath, GlypID.Readers.FileType.FINNIGAN);
            }
            else
            {
                _fileType = "mzxml";
                Raw       = new GlypID.Readers.clsRawData(_fullFilePath, GlypID.Readers.FileType.MZXMLRAWDATA);
            }
        }
Exemple #6
0
 public RawReader(string argFullPath, enumRawDataType argRawType, double argSingleToNoise, double argPeakBackground, double argPeptideBackground, short argMaxCharge)
 {
     _fullFilePath              = argFullPath;
     _singleToNoiseRatio        = argSingleToNoise;
     _peakBackgroundRatio       = argPeakBackground;
     _peptideMinBackgroundRatio = argPeptideBackground;
     _maxCharge = argMaxCharge;
     if (argRawType == enumRawDataType.raw)
     {
         _fileType = "raw";
         Raw       = new GlypID.Readers.clsRawData(_fullFilePath, GlypID.Readers.FileType.FINNIGAN);
     }
     else
     {
         _fileType = "mzxml";
         Raw       = new GlypID.Readers.clsRawData(_fullFilePath, GlypID.Readers.FileType.MZXMLRAWDATA);
     }
 }
Exemple #7
0
 public RawReader(string argFullPath, enumRawDataType argRawType, double argSingleToNoise, double argPeakBackground, double argPeptideBackground, short argMaxCharge)
 {
     _fullFilePath = argFullPath;
     _singleToNoiseRatio = argSingleToNoise;
     _peakBackgroundRatio = argPeakBackground;
     _peptideMinBackgroundRatio = argPeptideBackground;
     _maxCharge = argMaxCharge;
     if (argRawType == enumRawDataType.raw)
     {
         _fileType = "raw";
         Raw = new GlypID.Readers.clsRawData(_fullFilePath, GlypID.Readers.FileType.FINNIGAN);
     }
     else
     {
         _fileType = "mzxml";
         Raw = new GlypID.Readers.clsRawData(_fullFilePath, GlypID.Readers.FileType.MZXMLRAWDATA);
     }
 }
Exemple #8
0
        public RawReader(string argFullPath, enumRawDataType argFileType, double argSingleToNoise, double argPeakBackground, double argPeptideBackground, short argMaxCharge)
        {
            Thread PipeServer = new Thread(StartNamedPipeServer);
            PipeServer.Start();
            _fullFilePath = argFullPath;
            _fileType = argFileType;
            _singleToNoiseRatio = argSingleToNoise;
            _peakBackgroundRatio = argPeakBackground;
            _peptideMinBackgroundRatio = argPeptideBackground;
            _maxCharge = argMaxCharge;

            GlypIDReader = new Process();
            //GlypIDReader.OutputDataReceived += new DataReceivedEventHandler(
            //    (s, e) =>
            //    {
            //        Desc += e.Data + "\n";
            //    }
            //);
            startInfo = new ProcessStartInfo();
            startInfo.FileName = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) + "\\GlypIDWrapper.exe";
            startInfo.RedirectStandardOutput = true;
            startInfo.RedirectStandardError = true;
            startInfo.UseShellExecute = false;
            startInfo.CreateNoWindow = true;

            //PipeServerThread = new Thread(StartNamePipeServer);
            //PipeServerThread.Start();
            //PipeServerThread.Join();
        }