// Initialize the substring as a subsequence of another substring. public void Init(FastSubstring fs, int start, int length) { this.sequence = fs.sequence; this.start = fs.start + start; this.length = length; }
// protected AminoAcidPolymer(string baseSequence, bool prevalidated) // { // if(prevalidated) // { // BaseSequence = baseSequence; // } // else // { // BaseSequence = INVALID_AMINO_ACIDS.Replace(baseSequence, string.Empty); // } // } protected void BaseInit(FastSubstring baseSequence) { BaseSequence = baseSequence; initializeProductArrays = true; fixedModifications = null; variableModifications = null; //cumulativeNTerminalMass = null; //cumulativeCTerminalMass = null; }