public DocumentAnalyzerController(IDocumentAnalyzerService documentAnalyzerService, IMlModelService mlModelService, IResultAnalyzer resultAnalyzer, ILogger <DocumentAnalyzerController> logger)
 {
     _documentAnalyzerService = documentAnalyzerService;
     _mlModelService          = mlModelService;
     _resultAnalyzer          = resultAnalyzer;
     _logger = logger;
 }
Beispiel #2
0
        public virtual void Read(string peptideFileLocation, string spectrumFileLocation)
        {
            List <IPeptide> peptides = initializer.GetPeptides(peptideFileLocation);

            spectrumRunner = initializer.GetSpectrumReader(spectrumFileLocation);

            int lastScan = spectrumRunner.GetLastScan();

            resultTable = new IGlycoPeptideScoreResultProduct[lastScan + 1];


            glycanGenerator = new BruteForceNGlycanCreator(initializer.GetGlycanCreatorParameter());
            glycans         = glycanGenerator.Generate();

            // data process
            specProcessor = initializer.GetSpectrumProcessing();
            monoRunner    = new BinSearchMonoMassSpectrumRun();

            // precursor
            double preTol = initializer.GetParameter().GetMS1Tolereance();

            precursorMatcher = new Y1PeptidesFilterPrecursorMatcher(
                new GlycoPeptidePrecursorMatcher(peptides, glycans, preTol), peptides);

            // search spectrum
            double tol = initializer.GetParameter().GetMSMSTolereance();

            searchWorker = new DPSearchSpectrumCID(tol);

            //result
            analyzer = new GeneralGlycoPeptideScoreResultAnalyzer();
        }
Beispiel #3
0
        public PrintTestRunner(string name, IResultGenerator resultGenerator, IResultAnalyzer resultAnalyzer)
        {
            this.resultGenerator = resultGenerator;
            this.resultAnalyzer  = resultAnalyzer;

            directory = TestDataPaths.GetTestDataDirectory(name);
        }
Beispiel #4
0
 public void AnalyzeRange(int start, int end)
 {
     discover.Compute();
     analyzer = new ScoreCutoffGlycoPeptideScoreResultAnalyzer(discover.GetCutoffScore());
     //analyzer = new GeneralGlycoPeptideScoreResultAnalyzer();
     analyzer.Init(initializer.GetOutputLocation());
     for (int i = start; i <= end; i++)
     {
         Analyze(i);
     }
     analyzer.Exit();
 }