コード例 #1
0
        /// <summary>
        /// Creates a DB sequence object with the specified values
        /// </summary>
        /// <param name="searchDb">Valid <see cref="SearchDatabaseInfo" /> object, not null</param>
        /// <param name="length">length of the protein</param>
        /// <param name="accession">protein identifier</param>
        /// <param name="description">description of the protein</param>
        public DbSequenceObj(SearchDatabaseInfo searchDb, int length, string accession, string description = "") : this()
        {
            Length         = length;
            SearchDatabase = searchDb;
            Accession      = accession;

            if (!string.IsNullOrWhiteSpace(description))
            {
                CVParams.Add(new CVParamObj(CV.CV.CVID.MS_protein_description, description));
            }
        }
コード例 #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public DbSequenceObj()
        {
            Id                 = null;
            Name               = null;
            Seq                = null;
            _length            = -1;
            LengthSpecified    = false;
            _searchDatabaseRef = null;
            Accession          = null;

            _searchDatabase = null;
        }
コード例 #3
0
        /// <summary>
        ///     Constructor
        /// </summary>
        public SearchDatabaseRefObj()
        {
            _searchDatabaseRef = null;

            _searchDatabase = null;
        }