Exemple #1
0
 /// <summary>
 /// Create a peptide evidence with the specified values
 /// </summary>
 /// <param name="dbSeq">Valid <see cref="DbSequenceObj" /> object, not null</param>
 /// <param name="peptide">Valid <see cref="PeptideObj" /> object, not null</param>
 /// <param name="start">start position of the peptide in the sequence</param>
 /// <param name="end">end position of the peptide in the sequence</param>
 /// <param name="pre">prefix residue, "." if the beginning of the sequence</param>
 /// <param name="post">post/suffix residue, "." if the end of the sequence</param>
 /// <param name="isDecoy">true if the peptide is a decoy</param>
 public PeptideEvidenceObj(DbSequenceObj dbSeq, PeptideObj peptide, int start, int end,
                           string pre, string post, bool isDecoy = false) : this()
 {
     DBSequence = dbSeq ?? throw new ArgumentNullException(nameof(dbSeq), "Argument cannot be null.");
     Peptide    = peptide ?? throw new ArgumentNullException(nameof(peptide), "Argument cannot be null.");
     Start      = start;
     End        = end;
     IsDecoy    = isDecoy;
     Pre        = pre;
     Post       = post;
 }
Exemple #2
0
 /// <summary>
 ///     Create a peptide evidence with the specified values
 /// </summary>
 /// <param name="dbSeq">Valid <see cref="DbSequenceObj" /> object, not null</param>
 /// <param name="peptide">Valid <see cref="PeptideObj" /> object, not null</param>
 /// <param name="start">start position of the peptide in the sequence</param>
 /// <param name="end">end position of the peptide in the sequence</param>
 /// <param name="pre">prefix residue, "." if the beginning of the sequence</param>
 /// <param name="post">post/suffix residue, "." if the end of the sequence</param>
 /// <param name="isDecoy">true if the peptide is a decoy</param>
 /// <returns></returns>
 public PeptideEvidenceObj(DbSequenceObj dbSeq, PeptideObj peptide, int start, int end,
                           string pre, string post, bool isDecoy = false) : this()
 {
     if (dbSeq == null)
     {
         throw new ArgumentNullException("dbSeq", "Argument cannot be null.");
     }
     if (peptide == null)
     {
         throw new ArgumentNullException("peptide", "Argument cannot be null.");
     }
     DBSequence = dbSeq;
     Peptide    = peptide;
     Start      = start;
     End        = end;
     IsDecoy    = isDecoy;
     Pre        = pre;
     Post       = post;
 }
Exemple #3
0
        /// <summary>
        ///     Constructor
        /// </summary>
        public PeptideEvidenceObj()
        {
            _dBSequenceRef       = null;
            _peptideRef          = null;
            _start               = -1;
            StartSpecified       = false;
            _end                 = -1;
            EndSpecified         = false;
            Pre                  = null;
            Post                 = null;
            _translationTableRef = null;
            _frame               = -1;
            FrameSpecified       = false;
            IsDecoy              = false;
            Id   = null;
            Name = null;

            _dBSequence       = null;
            _peptide          = null;
            _translationTable = null;
        }