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); } }
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; }