Beispiel #1
0
        public static PeptideFileAnalysis GetPeptideFileAnalysis(
            PeptideAnalysis peptideAnalysis, DbPeptideFileAnalysis dbPeptideFileAnalysis)
        {
            PeptideFileAnalysis peptideFileAnalysis;

            peptideAnalysis.FileAnalyses.TryGetValue(dbPeptideFileAnalysis.GetId(), out peptideFileAnalysis);
            return(peptideFileAnalysis);
        }
 public AnalysisChromatograms(DbPeptideFileAnalysis dbPeptideFileAnalysis)
 {
     PeptideAnalysisId = dbPeptideFileAnalysis.PeptideAnalysis.Id.Value;
     PeptideFileAnalysisId = dbPeptideFileAnalysis.Id.Value;
     FirstTime = dbPeptideFileAnalysis.ChromatogramStartTime;
     LastTime = dbPeptideFileAnalysis.ChromatogramEndTime;
     MinCharge = dbPeptideFileAnalysis.PeptideAnalysis.MinCharge;
     MaxCharge = dbPeptideFileAnalysis.PeptideAnalysis.MaxCharge;
     Sequence = dbPeptideFileAnalysis.PeptideAnalysis.Peptide.Sequence;
 }
Beispiel #3
0
 public AnalysisChromatograms(DbPeptideFileAnalysis dbPeptideFileAnalysis)
 {
     PeptideAnalysisId     = dbPeptideFileAnalysis.PeptideAnalysis.Id.Value;
     PeptideFileAnalysisId = dbPeptideFileAnalysis.Id.Value;
     FirstTime             = dbPeptideFileAnalysis.ChromatogramStartTime;
     LastTime  = dbPeptideFileAnalysis.ChromatogramEndTime;
     MinCharge = dbPeptideFileAnalysis.PeptideAnalysis.MinCharge;
     MaxCharge = dbPeptideFileAnalysis.PeptideAnalysis.MaxCharge;
     Sequence  = dbPeptideFileAnalysis.PeptideAnalysis.Peptide.Sequence;
 }
Beispiel #4
0
 public static void DeleteResults(ISession session, DbPeptideFileAnalysis dbPeptideFileAnalysis)
 {
     dbPeptideFileAnalysis.PrecursorEnrichment        = null;
     dbPeptideFileAnalysis.PrecursorEnrichmentFormula = null;
     dbPeptideFileAnalysis.TracerPercent      = null;
     dbPeptideFileAnalysis.Turnover           = null;
     dbPeptideFileAnalysis.DeconvolutionScore = null;
     dbPeptideFileAnalysis.IntegrationNote    = null;
     session.CreateSQLQuery("DELETE FROM DbPeak WHERE PeptideFileAnalysis = :peptideFileAnalysisId")
     .SetParameter("peptideFileAnalysisId", dbPeptideFileAnalysis.Id)
     .ExecuteUpdate();
 }
 public PeptideFileAnalysisData(DbPeptideFileAnalysis dbPeptideFileAnalysis, IEnumerable<Peak> peaks)
 {
     MsDataFileId = dbPeptideFileAnalysis.MsDataFile.GetId();
     ValidationStatus = dbPeptideFileAnalysis.ValidationStatus;
     Note = dbPeptideFileAnalysis.Note;
     ChromatogramStartTime = dbPeptideFileAnalysis.ChromatogramStartTime;
     ChromatogramEndTime = dbPeptideFileAnalysis.ChromatogramEndTime;
     AutoFindPeak = dbPeptideFileAnalysis.AutoFindPeak;
     Peaks = new PeakSet(dbPeptideFileAnalysis, peaks);
     if (null != dbPeptideFileAnalysis.ChromatogramSet)
     {
         ChromatogramSetId = dbPeptideFileAnalysis.ChromatogramSet.Id;
     }
 }
Beispiel #6
0
 public PeptideFileAnalysisData(DbPeptideFileAnalysis dbPeptideFileAnalysis, IEnumerable <Peak> peaks)
 {
     MsDataFileId          = dbPeptideFileAnalysis.MsDataFile.GetId();
     ValidationStatus      = dbPeptideFileAnalysis.ValidationStatus;
     Note                  = dbPeptideFileAnalysis.Note;
     ChromatogramStartTime = dbPeptideFileAnalysis.ChromatogramStartTime;
     ChromatogramEndTime   = dbPeptideFileAnalysis.ChromatogramEndTime;
     AutoFindPeak          = dbPeptideFileAnalysis.AutoFindPeak;
     Peaks                 = new PeakSet(dbPeptideFileAnalysis, peaks);
     if (null != dbPeptideFileAnalysis.ChromatogramSet)
     {
         ChromatogramSetId = dbPeptideFileAnalysis.ChromatogramSet.Id;
     }
 }
Beispiel #7
0
 public PeakSet(DbPeptideFileAnalysis dbPeptideFileAnalysis, IEnumerable <Peak> peaks) : this()
 {
     TracerPercent       = dbPeptideFileAnalysis.TracerPercent;
     DeconvolutionScore  = dbPeptideFileAnalysis.DeconvolutionScore;
     PrecursorEnrichment = dbPeptideFileAnalysis.PrecursorEnrichment;
     if (dbPeptideFileAnalysis.PrecursorEnrichmentFormula != null)
     {
         PrecursorEnrichmentFormula = TracerPercentFormula.Parse(dbPeptideFileAnalysis.PrecursorEnrichmentFormula);
     }
     Turnover        = dbPeptideFileAnalysis.Turnover;
     TurnoverScore   = dbPeptideFileAnalysis.TurnoverScore;
     IntegrationNote = IntegrationNote.Parse(dbPeptideFileAnalysis.IntegrationNote);
     if (peaks != null)
     {
         _peaks = ImmutableList.ValueOf(peaks);
     }
 }
Beispiel #8
0
 public static void DeleteResults(ISession session, DbPeptideFileAnalysis dbPeptideFileAnalysis)
 {
     dbPeptideFileAnalysis.PrecursorEnrichment = null;
     dbPeptideFileAnalysis.PrecursorEnrichmentFormula = null;
     dbPeptideFileAnalysis.TracerPercent = null;
     dbPeptideFileAnalysis.Turnover = null;
     dbPeptideFileAnalysis.DeconvolutionScore = null;
     dbPeptideFileAnalysis.IntegrationNote = null;
     session.CreateSQLQuery("DELETE FROM DbPeak WHERE PeptideFileAnalysis = :peptideFileAnalysisId")
         .SetParameter("peptideFileAnalysisId", dbPeptideFileAnalysis.Id)
         .ExecuteUpdate();
 }
 public PeakSet(DbPeptideFileAnalysis dbPeptideFileAnalysis, IEnumerable<Peak> peaks)
     : this()
 {
     TracerPercent = dbPeptideFileAnalysis.TracerPercent;
     DeconvolutionScore = dbPeptideFileAnalysis.DeconvolutionScore;
     PrecursorEnrichment = dbPeptideFileAnalysis.PrecursorEnrichment;
     if (dbPeptideFileAnalysis.PrecursorEnrichmentFormula != null)
     {
         PrecursorEnrichmentFormula = TracerPercentFormula.Parse(dbPeptideFileAnalysis.PrecursorEnrichmentFormula);
     }
     Turnover = dbPeptideFileAnalysis.Turnover;
     TurnoverScore = dbPeptideFileAnalysis.TurnoverScore;
     IntegrationNote = IntegrationNote.Parse(dbPeptideFileAnalysis.IntegrationNote);
     if (peaks != null)
     {
         _peaks = ImmutableList.ValueOf(peaks);
     }
 }