Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProteinId"/> class.
 /// Constructor for creating a ProteinId from a FASTA Entry.
 /// </summary>
 /// <param name="fastaEntry">The FASTA Entry.</param>
 public ProteinId(FastaEntry fastaEntry)
 {
     Proteoforms        = new Dictionary <string, ProteoformId>();
     Sequence           = new Sequence(fastaEntry.ProteinSequenceText, new AminoAcidSet());
     ProteinName        = fastaEntry.ProteinName;
     ProteinDescription = fastaEntry.ProteinDescription;
 }
 /// <summary>
 /// Add a new ProteinID from a FASTA Entry.
 /// </summary>
 /// <param name="fastaEntry">The FASTA entry to add.</param>
 public void AddFastaEntry(FastaEntry fastaEntry)
 {
     if (!allProteins.ContainsKey(fastaEntry.ProteinName))
     {
         allProteins.Add(fastaEntry.ProteinName, new ProteinId(fastaEntry));
     }
 }