/// <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)); } }
/// <summary> /// Constructor /// </summary> public DbSequenceObj() { Id = null; Name = null; Seq = null; _length = -1; LengthSpecified = false; _searchDatabaseRef = null; Accession = null; _searchDatabase = null; }
/// <summary> /// Constructor /// </summary> public SearchDatabaseRefObj() { _searchDatabaseRef = null; _searchDatabase = null; }