Beispiel #1
0
 protected NucleotideSequence(string sequence, AlphabetType alphabet, GeneticCode geneticCode, Dictionary <Nucleotide, long> symbolCounts, IEnumerable <string> tags)
 {
     NucleotideAlphabet = new NucleotideAlphabet(alphabet, geneticCode);
     ActiveAlphabet     = alphabet;
     GeneticCode        = geneticCode;
     Sequence           = sequence;
     SymbolCounts       = symbolCounts;
     if (tags != null)
     {
         _tags = new HashSet <string>(tags);
     }
 }
Beispiel #2
0
        protected NucleotideSequence(string sequence, AlphabetType alphabet, GeneticCode geneticCode)
        {
            NucleotideAlphabet = new NucleotideAlphabet(alphabet, geneticCode);
            ActiveAlphabet     = alphabet;
            GeneticCode        = geneticCode;
            var trimmedSequence = sequence.Trim();



            VerifyAndInitializeNucleotides(trimmedSequence);
            Sequence = trimmedSequence;
        }